diff --git a/content_scripts/src/proxyblock.js b/content_scripts/src/proxyblock.js index cf8ac08..2ca7c97 100644 --- a/content_scripts/src/proxyblock.js +++ b/content_scripts/src/proxyblock.js @@ -136,7 +136,9 @@ parentRef[lastPropertyName] = defaultBlockingProxy; return true; } catch (e) { - console.log("Error instrumenting " + keyPath + ": " + e); + if (shouldLog) { + console.log("Error instrumenting " + keyPath + ": " + e); + } return false; } };