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 cbec00d commit 37c8ffaCopy full SHA for 37c8ffa
src/browser.js
@@ -10,13 +10,13 @@ var jsonp = require('./wrapper/jsonp.js');
10
11
(function() {
12
if (window[cst.GLOBAL_LOCK]) return;
13
- window[cst.GLOBAL_LOCK] = true;
14
15
var query = url.parse(location.href, true).query;
16
// enable if the switch is on
17
var mock = query[cst.QUERY_MOCK_ENABLED] || cookies.getItem(document.cookie, cst.COOKIE_MOCK_ENABLED);
18
if (mock === cst.COOKIE_MOCK_ENABLED_OK) {
19
enableIntercept();
+ window[cst.GLOBAL_LOCK] = true;
20
}
21
// update cookies (invalid values mean disabled)
22
if (query[cst.QUERY_MOCK_ENABLED]) {
0 commit comments