#955: merging 1.3.6 changes

This commit is contained in:
gorhill 2015-11-21 10:53:43 -05:00
parent cb1a176e21
commit 7fcb0176fc
1 changed files with 3 additions and 3 deletions

View File

@ -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(