1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 04:49:12 +02:00

let's see if this fixes #906

This commit is contained in:
gorhill 2015-11-06 00:32:45 -05:00
parent e847d7f9f4
commit 770875608d

View File

@ -1220,6 +1220,17 @@ var tabWatcher = (function() {
return;
}
// https://github.com/gorhill/uBlock/issues/906
// This might have been the cause. Will see.
if (
document.readyState !== 'interactive' &&
document.readyState !== 'complete'
) {
console.log('document not ready');
attachToTabBrowserLater({ window: window, tryCount: tryCount });
return;
}
// On some platforms, the tab browser isn't immediately available,
// try waiting a bit if this happens.
// https://github.com/gorhill/uBlock/issues/763