diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index 48266892..22f49eb4 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -208,6 +208,9 @@ vAPI.tabs.get = function(tabId, callback) { if ( typeof tabId === 'string' ) { tabId = parseInt(tabId, 10); } + if ( typeof tabId !== 'number' || isNaN(tabId) ) { + onTabReady(null); + } chrome.tabs.get(tabId, onTabReady); return; }