diff options
| author | Jez Ng | 2012-09-09 16:46:12 -0400 | 
|---|---|---|
| committer | Jez Ng | 2012-09-09 16:47:35 -0400 | 
| commit | 44ed1848548d4c73c35c3302fc47ebfc8295dcae (patch) | |
| tree | 3df2f20c93ee7cea10b6a54aa5e31e4f0bd6edb5 /background_scripts/settings.coffee | |
| parent | 8c2a65dfdf9c3b4e69bca15eb7705280758245c2 (diff) | |
| download | vimium-44ed1848548d4c73c35c3302fc47ebfc8295dcae.tar.bz2 | |
Add more tests, and remove old settings code.
Diffstat (limited to 'background_scripts/settings.coffee')
| -rw-r--r-- | background_scripts/settings.coffee | 14 | 
1 files changed, 2 insertions, 12 deletions
| diff --git a/background_scripts/settings.coffee b/background_scripts/settings.coffee index 5b2e921a..2f62fc50 100644 --- a/background_scripts/settings.coffee +++ b/background_scripts/settings.coffee @@ -57,15 +57,5 @@ root.Settings = Settings =      nextPatterns: "next,more,>,\u2192,\xbb,\u226b,>>"  # Initialization code. -# settingsVersion was introduced in v1.31, and is used to coordinate data migration. We do not use -# previousVersion as it is used to coordinate the display of the upgrade message, and is not updated -# early enough when the extension loads. -# 1.31 was also the version where we converted all localStorage values to JSON. -if (!Settings.has("settingsVersion")) -  for key of localStorage -    # filterLinkHints' checkbox state used to be stored as a string -    if (key == "filterLinkHints") -      localStorage[key] = if (localStorage[key] == "true") then true else false -    else -      localStorage[key] = JSON.stringify(localStorage[key]) -  Settings.set("settingsVersion", Utils.getCurrentVersion()) +# We use this parameter to coordinate any necessary schema changes. +Settings.set("settingsVersion", Utils.getCurrentVersion()) | 
