fixing broken firefox object behavior

This commit is contained in:
Alex Yatskov 2017-08-17 19:11:23 -07:00
parent 0c650dac82
commit 6367894df0
2 changed files with 3 additions and 3 deletions

View File

@ -18,11 +18,11 @@
async function apiOptionsSet(options) {
utilBackend().onOptionsUpdated(utilIsolate(options));
utilBackend().onOptionsUpdated(options);
}
async function apiOptionsGet() {
return utilIsolate(utilBackend().options);
return utilBackend().options;
}
async function apiTermsFind(text) {

View File

@ -37,7 +37,7 @@ class Backend {
}
onOptionsUpdated(options) {
this.options = options;
this.options = utilIsolate(options);
if (!options.general.enable) {
chrome.browserAction.setBadgeBackgroundColor({color: '#555555'});