Quiet down unnecessary debug logging (issue #191).

This commit is contained in:
hackademix 2021-05-20 00:06:56 +02:00
parent b7fdaa84d0
commit 61db56d39d
2 changed files with 4 additions and 4 deletions

View File

@ -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) {

@ -1 +1 @@
Subproject commit 7154eefaba0a1e4d6075feb0a719838658398769 Subproject commit 672993281a8d07b2b7c1c3f73d36160f735ea31e