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