|
@@ -148,7 +148,5 @@ if (!global.browser?.runtime?.sendMessage) {
|
|
|
// prefetch the options while the current extension page loads
|
|
|
/* global browser */
|
|
|
if (browser.tabs) {
|
|
|
- global.allOptions = browser.runtime.sendMessage({ cmd: 'GetAllOptions' })
|
|
|
- .then(res => (global.chrome.app ? res.data : res)) // in Chrome we wrap `data` and `error`
|
|
|
- .catch(() => {});
|
|
|
+ global.allOptions = browser.runtime.sendMessage({ cmd: 'GetAllOptions' }).catch(() => {});
|
|
|
}
|