aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/settings.coffee8
1 files changed, 4 insertions, 4 deletions
diff --git a/background_scripts/settings.coffee b/background_scripts/settings.coffee
index 063287db..ad89888e 100644
--- a/background_scripts/settings.coffee
+++ b/background_scripts/settings.coffee
@@ -7,14 +7,14 @@ root.Settings = Settings =
get: (key) ->
if (key of localStorage) then JSON.parse(localStorage[key]) else @defaults[key]
- set: (key, value, doNotSync) ->
+ set: (key, value) ->
# don't store the value if it is equal to the default, so we can change the defaults in the future
if (value == @defaults[key])
@clear(key)
else
- jsonified = JSON.stringify value
- localStorage[key] = jsonified
- root.Sync.set key, jsonified
+ jsonValue = JSON.stringify value
+ localStorage[key] = jsonValue
+ root.Sync.set key, jsonValue
clear: (key) ->
if @has key