Quiet down unnecessary debug logging (issue #191).
This commit is contained in:
parent
b7fdaa84d0
commit
61db56d39d
|
@ -624,10 +624,10 @@ var RequestGuard = (() => {
|
||||||
let {url, tabId, frameId} = details;
|
let {url, tabId, frameId} = details;
|
||||||
let policy = ns.computeChildPolicy({url}, {tab: {id: tabId}, frameId});
|
let policy = ns.computeChildPolicy({url}, {tab: {id: tabId}, frameId});
|
||||||
policy.navigationURL = url;
|
policy.navigationURL = url;
|
||||||
let debugStatement = ns.local.debug ? `console.debug("domPolicy", domPolicy, mark);` : '';
|
let debugStatement = ns.local.debug ? `
|
||||||
return `
|
|
||||||
let mark = Date.now() + ":" + Math.random();
|
let mark = Date.now() + ":" + Math.random();
|
||||||
console.log("domPolicy", document.readyState, mark);
|
console.debug("domPolicy", domPolicy, document.readyState, mark);` : '';
|
||||||
|
return `
|
||||||
let domPolicy = ${JSON.stringify(policy)};
|
let domPolicy = ${JSON.stringify(policy)};
|
||||||
let {ns} = window;
|
let {ns} = window;
|
||||||
if (ns) {
|
if (ns) {
|
||||||
|
|
2
src/nscl
2
src/nscl
|
@ -1 +1 @@
|
||||||
Subproject commit 7154eefaba0a1e4d6075feb0a719838658398769
|
Subproject commit 672993281a8d07b2b7c1c3f73d36160f735ea31e
|
Loading…
Reference in New Issue