mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-02-08 13:38:14 -05:00
Fall back in case of error in popup openOptions.
This commit is contained in:
parent
e23db1771d
commit
7a3ac05cd5
@ -43,7 +43,7 @@ OmegaTargetPopup = {
|
|||||||
chrome.tabs.query({
|
chrome.tabs.query({
|
||||||
url: options_url
|
url: options_url
|
||||||
}, function(tabs) {
|
}, function(tabs) {
|
||||||
if (tabs.length > 0) {
|
if (!chrome.runtime.lastError && tabs && tabs.length > 0) {
|
||||||
var props = {
|
var props = {
|
||||||
active: true
|
active: true
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user