Skip to content

Commit

Permalink
minor code review
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jul 4, 2017
1 parent 432818d commit 6a53e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/chromium/vapi-background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6a53e6d

Please sign in to comment.