1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00

Remove diagnostic logging

This commit is contained in:
AlexVallat 2015-04-06 08:08:23 +01:00
parent 7b781248f0
commit e6b3c31d5e

View File

@ -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;
}