1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 04:49:12 +02: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(