Fall back in case of error in popup openOptions.

This commit is contained in:
FelisCatus 2017-07-31 15:58:44 -04:00 committed by Felis Catus
parent e23db1771d
commit 7a3ac05cd5

View File

@ -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
};