commit | 001c07cc9bc7eaa56d0e2c8f52965c032549a88c | [log] [tgz] |
---|---|---|
author | avm99963 <jocdeladria@gmail.com> | Sat Mar 30 18:47:02 2019 +0100 |
committer | avm99963 <jocdeladria@gmail.com> | Sat Mar 30 18:47:02 2019 +0100 |
tree | 5e76a8142d3d1b38218b430e441fd8c9d1234a31 | |
parent | 122dc9b9663a2fefa7d5277733c69c09cde1184f [diff] |
Small bug fix
diff --git a/options.js b/options.js index 48cd864..eb89bc4 100644 --- a/options.js +++ b/options.js
@@ -22,6 +22,8 @@ if (!ok) { chrome.storage.sync.set(options); } + + return options; } function save() { @@ -38,7 +40,7 @@ window.addEventListener("load", function() { chrome.storage.sync.get(null, function(items) { - cleanUpOptions(items); + items = cleanUpOptions(items); Object.keys(defaultOptions).forEach(function(opt) { if (items[opt] === true) {