diff --git a/src/drivers/webextension/js/options.js b/src/drivers/webextension/js/options.js index fc69619f8..4c5d7cc67 100644 --- a/src/drivers/webextension/js/options.js +++ b/src/drivers/webextension/js/options.js @@ -11,11 +11,11 @@ function getOption(name, defaultValue, callback) { } function setOption(name, value) { - var option = {}; - - option[name] = value; - - browser.storage.local.set(option); + ( chrome || browser ).runtime.sendMessage({ + id: 'set_option', + key: name, + value: value + }); } document.addEventListener('DOMContentLoaded', () => {