From e6b3c31d5e23e1febd8d9c78ed02c056b27c70b1 Mon Sep 17 00:00:00 2001 From: AlexVallat Date: Mon, 6 Apr 2015 08:08:23 +0100 Subject: [PATCH] Remove diagnostic logging --- platform/firefox/bootstrap.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/platform/firefox/bootstrap.js b/platform/firefox/bootstrap.js index 80bf8ea8c..96c1681d9 100644 --- a/platform/firefox/bootstrap.js +++ b/platform/firefox/bootstrap.js @@ -54,19 +54,14 @@ function startup(data, reason) { let appShell = Components.classes['@mozilla.org/appshell/appShellService;1'] .getService(Components.interfaces.nsIAppShellService); - let onReady = function (e) { - console.log("uBlock> onReady"); - - if (e) { - console.log("uBlock> removing event listener " + e.type + " from " + this); - + let onReady = function(e) { + if ( e ) { this.removeEventListener(e.type, onReady); } let hiddenDoc = appShell.hiddenDOMWindow.document; - if (hiddenDoc.readyState === 'loading') { - console.log("uBlock> hiddenDOMWindow not ready, waiting"); + if ( hiddenDoc.readyState === 'loading' ) { hiddenDoc.addEventListener('DOMContentLoaded', onReady); return; }