Fix options page (#2327)

Bug report: #2325
The value was already correct in local storage but it was not change in <code>options</code> dictionnary in the driver.
main
Camille Barneaud 7 years ago committed by Elbert Alias
parent 2f67a7745e
commit 2252847e89

@ -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', () => {