mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-02-02 02:58:13 -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({
|
||||
url: options_url
|
||||
}, function(tabs) {
|
||||
if (tabs.length > 0) {
|
||||
if (!chrome.runtime.lastError && tabs && tabs.length > 0) {
|
||||
var props = {
|
||||
active: true
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user