mirror of https://github.com/gorhill/uBlock.git
Remove diagnostic logging
This commit is contained in:
parent
7b781248f0
commit
e6b3c31d5e
|
@ -54,19 +54,14 @@ function startup(data, reason) {
|
||||||
let appShell = Components.classes['@mozilla.org/appshell/appShellService;1']
|
let appShell = Components.classes['@mozilla.org/appshell/appShellService;1']
|
||||||
.getService(Components.interfaces.nsIAppShellService);
|
.getService(Components.interfaces.nsIAppShellService);
|
||||||
|
|
||||||
let onReady = function (e) {
|
let onReady = function(e) {
|
||||||
console.log("uBlock> onReady");
|
if ( e ) {
|
||||||
|
|
||||||
if (e) {
|
|
||||||
console.log("uBlock> removing event listener " + e.type + " from " + this);
|
|
||||||
|
|
||||||
this.removeEventListener(e.type, onReady);
|
this.removeEventListener(e.type, onReady);
|
||||||
}
|
}
|
||||||
|
|
||||||
let hiddenDoc = appShell.hiddenDOMWindow.document;
|
let hiddenDoc = appShell.hiddenDOMWindow.document;
|
||||||
|
|
||||||
if (hiddenDoc.readyState === 'loading') {
|
if ( hiddenDoc.readyState === 'loading' ) {
|
||||||
console.log("uBlock> hiddenDOMWindow not ready, waiting");
|
|
||||||
hiddenDoc.addEventListener('DOMContentLoaded', onReady);
|
hiddenDoc.addEventListener('DOMContentLoaded', onReady);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue