minor code review

This commit is contained in:
gorhill 2017-07-04 09:33:03 -04:00
parent 432818df4f
commit 6a53e6d0ac
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -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;