We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acfced4 commit 73c7011Copy full SHA for 73c7011
client/dashboard/utils/is-dashboard-backport.ts
@@ -6,5 +6,11 @@ export function isDashboardBackport() {
6
return false;
7
}
8
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
+
15
return ! [ '/v2', '/ciab' ].some( ( path ) => window?.location?.pathname?.startsWith( path ) );
16
0 commit comments