From 529258de44518a0164a6b369eaca006605dc8537 Mon Sep 17 00:00:00 2001 From: gorhill Date: Mon, 19 Jan 2015 18:42:58 -0500 Subject: [PATCH] started work on #105, #475, and possibly #510 --- platform/chromium/vapi-background.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index 7efbc44..21d6c77 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -61,6 +61,14 @@ vAPI.tabs = {}; /******************************************************************************/ +vAPI.isNoTabId = function(tabId) { + return tabId.toString() === '-1'; +}; + +vAPI.noTabId = '-1'; + +/******************************************************************************/ + vAPI.tabs.registerListeners = function() { if ( typeof this.onNavigation === 'function' ) { chrome.webNavigation.onCommitted.addListener(this.onNavigation);