From 76190a644e5b73240af2b02625e0a773e6634a86 Mon Sep 17 00:00:00 2001 From: hackademix Date: Wed, 1 Aug 2018 17:48:45 +0200 Subject: Improved support for debugging code removal in releases. --- src/content/content.js | 2 +- src/content/media.js | 2 +- src/content/webglHook.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/content') diff --git a/src/content/content.js b/src/content/content.js index 222cc05..886c363 100644 --- a/src/content/content.js +++ b/src/content/content.js @@ -1,6 +1,6 @@ 'use strict'; - // debug = () => {}; // XPI_ONLY + // debug = () => {}; // REL_ONLY var canScript = true, shouldScript = false; diff --git a/src/content/media.js b/src/content/media.js index 5a6827a..ffa67e0 100644 --- a/src/content/media.js +++ b/src/content/media.js @@ -1,5 +1,5 @@ { - debug("Media Hook (blocked %s)", !!window.mediaBlocker, document.URL, document.documentElement && document.documentElement.innerHTML); + debug("Media Hook (blocked %s)", !!window.mediaBlocker, document.URL, document.documentElement && document.documentElement.innerHTML); // DEV_ONLY (() => { let unpatched = new Map(); function patch(obj, methodName, replacement) { diff --git a/src/content/webglHook.js b/src/content/webglHook.js index 171ce59..d4c064a 100644 --- a/src/content/webglHook.js +++ b/src/content/webglHook.js @@ -1,5 +1,5 @@ { - debug("WebGL Hook", document.URL, document.documentElement && document.documentElement.innerHTML); + debug("WebGL Hook", document.URL, document.documentElement && document.documentElement.innerHTML); // DEV_ONLY let proto = HTMLCanvasElement.prototype; let getContext = proto.getContext; exportFunction(function(type, ...rest) { -- cgit v1.2.3