mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-09-30 17:19:35 +13:00
parent
f4a853c611
commit
529258de44
1 changed files with 8 additions and 0 deletions
|
@ -61,6 +61,14 @@ vAPI.tabs = {};
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
vAPI.isNoTabId = function(tabId) {
|
||||||
|
return tabId.toString() === '-1';
|
||||||
|
};
|
||||||
|
|
||||||
|
vAPI.noTabId = '-1';
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
|
||||||
vAPI.tabs.registerListeners = function() {
|
vAPI.tabs.registerListeners = function() {
|
||||||
if ( typeof this.onNavigation === 'function' ) {
|
if ( typeof this.onNavigation === 'function' ) {
|
||||||
chrome.webNavigation.onCommitted.addListener(this.onNavigation);
|
chrome.webNavigation.onCommitted.addListener(this.onNavigation);
|
||||||
|
|
Loading…
Reference in a new issue