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