summaryrefslogtreecommitdiff
path: root/ext/bg/js/api.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-08-05 19:11:06 -0700
committerAlex Yatskov <alex@foosoft.net>2017-08-05 19:11:06 -0700
commitdfecef1f23435c933237794de6665f6fbacf90ec (patch)
tree5f14e45c7a569ec9850813bde0f3f6d829927680 /ext/bg/js/api.js
parent8e1c6776d1a6149c222ac0bda6b7b0d373453d11 (diff)
more cleanup
Diffstat (limited to 'ext/bg/js/api.js')
-rw-r--r--ext/bg/js/api.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js
index 9dbb69c1..bc2693e5 100644
--- a/ext/bg/js/api.js
+++ b/ext/bg/js/api.js
@@ -35,7 +35,7 @@ async function apiOptionsSet(options) {
// to the DOM across to the background page, causing the options object to
// become a "DeadObject" after the options page is closed. The workaround used
// here is to create a deep copy of the options object.
- backend().optionsSet(JSON.parse(JSON.stringify(options)));
+ backend().onOptionsUpdated(JSON.parse(JSON.stringify(options)));
}
async function apiOptionsGet() {