Index: safari/ext/background.js |
=================================================================== |
--- a/safari/ext/background.js |
+++ b/safari/ext/background.js |
@@ -540,12 +540,12 @@ |
setTimeout(callback, 0, items); |
}, |
- set: function(key, value, callback) |
+ set: function(items, callback) |
kzar
2016/08/22 15:38:33
I guess it's good not to break stuff, but if these
Oleksandr
2016/08/31 21:54:37
The idea is to commit with a bookmark to adblockpl
|
{ |
- safari.extension.settings[key] = value; |
- |
+ for (let key in items) |
+ safari.extension.settings[key] = items[key]; |
if (callback) |
- setTimeout(callback, 0); |
+ setTimeout(callback); |
}, |
remove: function(key, callback) |
{ |