mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 01:27:12 +02:00
code review
This commit is contained in:
parent
2750b13e34
commit
a2f79952a2
@ -54,11 +54,7 @@ var deferUntil = function(testFn, mainFn, details) {
|
|||||||
var until = details.until || 2000;
|
var until = details.until || 2000;
|
||||||
|
|
||||||
var check = function() {
|
var check = function() {
|
||||||
if ( testFn() === true ) {
|
if ( testFn() === true || now >= until ) {
|
||||||
mainFn();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if ( now >= until ) {
|
|
||||||
mainFn();
|
mainFn();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user