Skip to content

Commit 61db56d

Browse files
committed
Quiet down unnecessary debug logging (issue #191).
1 parent b7fdaa8 commit 61db56d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/bg/RequestGuard.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,10 +624,10 @@ var RequestGuard = (() => {
624624
let {url, tabId, frameId} = details;
625625
let policy = ns.computeChildPolicy({url}, {tab: {id: tabId}, frameId});
626626
policy.navigationURL = url;
627-
let debugStatement = ns.local.debug ? `console.debug("domPolicy", domPolicy, mark);` : '';
628-
return `
627+
let debugStatement = ns.local.debug ? `
629628
let mark = Date.now() + ":" + Math.random();
630-
console.log("domPolicy", document.readyState, mark);
629+
console.debug("domPolicy", domPolicy, document.readyState, mark);` : '';
630+
return `
631631
let domPolicy = ${JSON.stringify(policy)};
632632
let {ns} = window;
633633
if (ns) {

src/nscl

0 commit comments

Comments
 (0)