mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-05-05 21:03:17 +12:00
Silently ignore invalid tab id
This commit is contained in:
parent
3da449b8a4
commit
93b28cdd84
|
@ -440,9 +440,7 @@ vAPI.tabs.registerListeners();
|
|||
// Do not create a page store for URLs which are of no interests
|
||||
// Example: dev console
|
||||
let tabContext = this.tabContextManager.lookup(tabId);
|
||||
if ( tabContext === null ) {
|
||||
throw new Error('Unmanaged tab id: ' + tabId);
|
||||
}
|
||||
if ( tabContext === null ) { return; }
|
||||
|
||||
// rhill 2013-11-24: Never ever rebind behind-the-scene
|
||||
// virtual tab.
|
||||
|
|
Loading…
Reference in a new issue