1
0
Fork 0
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:
Raymond Hill 2019-09-05 09:16:45 -04:00
parent 3da449b8a4
commit 93b28cdd84
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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.