diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index 22f49eb47..93324e7db 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -210,8 +210,9 @@ vAPI.tabs.get = function(tabId, callback) { } if ( typeof tabId !== 'number' || isNaN(tabId) ) { onTabReady(null); + } else { + chrome.tabs.get(tabId, onTabReady); } - chrome.tabs.get(tabId, onTabReady); return; } var onTabReceived = function(tabs) {