1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-04 16:47:15 +02:00

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

View File

@ -479,7 +479,7 @@ vAPI.tabs.open = function(details) {
chrome.tabs.query({ url: targetURLWithoutHash }, function(tabs) { chrome.tabs.query({ url: targetURLWithoutHash }, function(tabs) {
if ( chrome.runtime.lastError ) { /* noop */ } if ( chrome.runtime.lastError ) { /* noop */ }
var tab = tabs[0]; var tab = Array.isArray(tabs) && tabs[0];
if ( !tab ) { if ( !tab ) {
wrapper(); wrapper();
return; return;