diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index 7ee4c5f7a..34e8d1c12 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -479,7 +479,7 @@ vAPI.tabs.open = function(details) { chrome.tabs.query({ url: targetURLWithoutHash }, function(tabs) { if ( chrome.runtime.lastError ) { /* noop */ } - var tab = tabs[0]; + var tab = Array.isArray(tabs) && tabs[0]; if ( !tab ) { wrapper(); return;