diff options
| -rw-r--r-- | options/options.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/options/options.coffee b/options/options.coffee index 6300dbcd..0823bd4b 100644 --- a/options/options.coffee +++ b/options/options.coffee @@ -41,7 +41,7 @@ enableSaveButton = -> # Saves options to localStorage. saveOptions = -> - + # If the value is unchanged from the default, delete the preference from localStorage; this gives us # the freedom to change the defaults in the future. for fieldName in editableFields @@ -51,7 +51,7 @@ saveOptions = -> else fieldValue = field.value.trim() field.value = fieldValue - + # If it's empty and not a field that we allow to be empty, restore to the default value if not fieldValue and canBeEmptyFields.indexOf(fieldName) is -1 bgSettings.clear fieldName |
