Skip to content

Commit 73c7011

Browse files
authored
MSD: fix isDashboardBackport() condition for my.localhost (#107582)
1 parent acfced4 commit 73c7011

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

client/dashboard/utils/is-dashboard-backport.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,11 @@ export function isDashboardBackport() {
66
return false;
77
}
88

9+
// Calypso development environment can also load the dashboard via the following hostname,
10+
// in which case it's also not the backport.
11+
if ( window?.location?.hostname?.startsWith( 'my.localhost' ) ) {
12+
return false;
13+
}
14+
915
return ! [ '/v2', '/ciab' ].some( ( path ) => window?.location?.pathname?.startsWith( path ) );
1016
}

0 commit comments

Comments
 (0)