mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-01 16:49:39 +02:00
code review
This commit is contained in:
parent
278588e016
commit
4cebefd5b5
@ -714,7 +714,6 @@ vAPI.noTabId = '-1';
|
|||||||
|
|
||||||
vAPI.tabs = {};
|
vAPI.tabs = {};
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
vAPI.tabs.registerListeners = function() {
|
vAPI.tabs.registerListeners = function() {
|
||||||
@ -848,11 +847,6 @@ vAPI.tabs.open = function(details) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Or simply .equals if we care about the fragment
|
|
||||||
if ( URI.equalsExceptRef(browser.currentURI) === false ) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.select(tab);
|
this.select(tab);
|
||||||
|
|
||||||
// Update URL if fragment is different
|
// Update URL if fragment is different
|
||||||
|
@ -253,7 +253,7 @@ housekeep itself.
|
|||||||
}
|
}
|
||||||
this.stack.push(new StackEntry(url));
|
this.stack.push(new StackEntry(url));
|
||||||
this.update();
|
this.update();
|
||||||
if ( this.commitTimer === null ) {
|
if ( this.commitTimer !== null ) {
|
||||||
clearTimeout(this.commitTimer);
|
clearTimeout(this.commitTimer);
|
||||||
}
|
}
|
||||||
this.commitTimer = vAPI.setTimeout(this.onCommit.bind(this), 1000);
|
this.commitTimer = vAPI.setTimeout(this.onCommit.bind(this), 1000);
|
||||||
|
Loading…
Reference in New Issue
Block a user