Update src/extension-support/extension-manager.js
Browse files
src/extension-support/extension-manager.js
CHANGED
@@ -8,9 +8,9 @@ const Cast = require('../util/cast');
|
|
8 |
|
9 |
const AddonSwitches = require('./extension-addon-switchers');
|
10 |
window.__cpLocation = window.location;
|
11 |
-
const urlParams = new URLSearchParams(window.
|
12 |
|
13 |
-
const IsLocal = String(window.
|
14 |
const IsLiveTests = urlParams.has('livetests');
|
15 |
|
16 |
// thhank yoh random stack droverflwo person
|
|
|
8 |
|
9 |
const AddonSwitches = require('./extension-addon-switchers');
|
10 |
window.__cpLocation = window.location;
|
11 |
+
const urlParams = new URLSearchParams(window.location.search);
|
12 |
|
13 |
+
const IsLocal = String(window.location.href).startsWith(`http://localhost:`);
|
14 |
const IsLiveTests = urlParams.has('livetests');
|
15 |
|
16 |
// thhank yoh random stack droverflwo person
|