mirror of https://github.com/gorhill/uBlock.git
Move faster test first
This commit is contained in:
parent
bb4ca42dc3
commit
86477dd4e5
|
@ -1370,11 +1370,11 @@ vAPI.Net = class {
|
||||||
this.lastUnprocessedRequestTime = Date.now();
|
this.lastUnprocessedRequestTime = Date.now();
|
||||||
}
|
}
|
||||||
hasUnprocessedRequest(tabId) {
|
hasUnprocessedRequest(tabId) {
|
||||||
|
if ( this.unprocessedTabs.size === 0 ) { return false; }
|
||||||
if ( (Date.now() - this.lastUnprocessedRequestTime) > 60000 ) {
|
if ( (Date.now() - this.lastUnprocessedRequestTime) > 60000 ) {
|
||||||
this.removeUnprocessedRequest();
|
this.removeUnprocessedRequest();
|
||||||
}
|
}
|
||||||
return this.unprocessedTabs.size !== 0 &&
|
return this.unprocessedTabs.has(tabId);
|
||||||
this.unprocessedTabs.has(tabId);
|
|
||||||
}
|
}
|
||||||
removeUnprocessedRequest(tabId) {
|
removeUnprocessedRequest(tabId) {
|
||||||
if ( this.deferredSuspendableListener === undefined ) {
|
if ( this.deferredSuspendableListener === undefined ) {
|
||||||
|
|
Loading…
Reference in New Issue