mirror of https://github.com/gorhill/uBlock.git
minor code review
This commit is contained in:
parent
432818df4f
commit
6a53e6d0ac
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue