Index: safari/ext/background.js |
=================================================================== |
--- a/safari/ext/background.js |
+++ b/safari/ext/background.js |
@@ -705,10 +705,15 @@ |
setTimeout(callback, 0, items); |
}, |
- set: function(key, value, callback) |
+ set: function(items, callback) |
{ |
- safari.extension.settings[key] = value; |
- |
+ for (let key in items) |
+ { |
+ if (items.hasOwnProperty(key)) |
Sebastian Noack
2016/03/31 14:08:53
I think it's safe to just skip this check. We neve
|
+ { |
+ safari.extension.settings[key] = items[key]; |
+ } |
+ } |
if (callback) |
setTimeout(callback, 0); |
}, |