1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-26 04:12:50 +01:00

#955: merging 1.3.6 changes

This commit is contained in:
gorhill 2015-11-21 10:53:43 -05:00
parent cb1a176e21
commit 7fcb0176fc

View File

@ -2387,10 +2387,10 @@ vAPI.toolbarButton = {
// https://github.com/gorhill/uBlock/issues/955
// Defer until `NativeWindow` is available.
tbb.initOne = function(win, tryCount) {
if ( typeof tryCount !== 'number' ) {
tryCount = 0;
}
if ( !win.NativeWindow ) {
if ( typeof tryCount !== 'number' ) {
tryCount = 0;
}
tryCount += 1;
if ( tryCount < 10 ) {
vAPI.setTimeout(