1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-22 18:32:45 +01:00

code review

This commit is contained in:
gorhill 2015-12-03 01:16:28 -05:00
parent 2750b13e34
commit a2f79952a2

View File

@ -54,11 +54,7 @@ var deferUntil = function(testFn, mainFn, details) {
var until = details.until || 2000;
var check = function() {
if ( testFn() === true ) {
mainFn();
return;
}
if ( now >= until ) {
if ( testFn() === true || now >= until ) {
mainFn();
return;
}