mirror of https://github.com/gorhill/uBlock.git
#955: merging 1.3.6 changes
This commit is contained in:
parent
cb1a176e21
commit
7fcb0176fc
|
@ -2387,10 +2387,10 @@ vAPI.toolbarButton = {
|
||||||
// https://github.com/gorhill/uBlock/issues/955
|
// https://github.com/gorhill/uBlock/issues/955
|
||||||
// Defer until `NativeWindow` is available.
|
// Defer until `NativeWindow` is available.
|
||||||
tbb.initOne = function(win, tryCount) {
|
tbb.initOne = function(win, tryCount) {
|
||||||
if ( typeof tryCount !== 'number' ) {
|
|
||||||
tryCount = 0;
|
|
||||||
}
|
|
||||||
if ( !win.NativeWindow ) {
|
if ( !win.NativeWindow ) {
|
||||||
|
if ( typeof tryCount !== 'number' ) {
|
||||||
|
tryCount = 0;
|
||||||
|
}
|
||||||
tryCount += 1;
|
tryCount += 1;
|
||||||
if ( tryCount < 10 ) {
|
if ( tryCount < 10 ) {
|
||||||
vAPI.setTimeout(
|
vAPI.setTimeout(
|
||||||
|
|
Loading…
Reference in New Issue