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:
parent
432818df4f
commit
6a53e6d0ac
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user