fixing broken firefox object behavior
This commit is contained in:
parent
0c650dac82
commit
6367894df0
@ -18,11 +18,11 @@
|
|||||||
|
|
||||||
|
|
||||||
async function apiOptionsSet(options) {
|
async function apiOptionsSet(options) {
|
||||||
utilBackend().onOptionsUpdated(utilIsolate(options));
|
utilBackend().onOptionsUpdated(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function apiOptionsGet() {
|
async function apiOptionsGet() {
|
||||||
return utilIsolate(utilBackend().options);
|
return utilBackend().options;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function apiTermsFind(text) {
|
async function apiTermsFind(text) {
|
||||||
|
@ -37,7 +37,7 @@ class Backend {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onOptionsUpdated(options) {
|
onOptionsUpdated(options) {
|
||||||
this.options = options;
|
this.options = utilIsolate(options);
|
||||||
|
|
||||||
if (!options.general.enable) {
|
if (!options.general.enable) {
|
||||||
chrome.browserAction.setBadgeBackgroundColor({color: '#555555'});
|
chrome.browserAction.setBadgeBackgroundColor({color: '#555555'});
|
||||||
|
Loading…
Reference in New Issue
Block a user