aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/settings.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-02-08 08:54:12 +0000
committerStephen Blott2015-02-08 08:54:12 +0000
commitc7ada0369f5f49180246eec655249a85643d5df2 (patch)
tree2049812850989c9f78f5b33951bcafdcd8a64fe1 /background_scripts/settings.coffee
parenta656b1f52c6879bb9b4468bbaffe7664e48926c0 (diff)
downloadvimium-c7ada0369f5f49180246eec655249a85643d5df2.tar.bz2
Refactor migration code for find-mode history.
Doing the migration in a content script is dumb. Now we do it on the background page.
Diffstat (limited to 'background_scripts/settings.coffee')
-rw-r--r--background_scripts/settings.coffee8
1 files changed, 8 insertions, 0 deletions
diff --git a/background_scripts/settings.coffee b/background_scripts/settings.coffee
index 2fc3b43d..70b94429 100644
--- a/background_scripts/settings.coffee
+++ b/background_scripts/settings.coffee
@@ -121,3 +121,11 @@ root.Settings = Settings =
if Utils.compareVersions("1.42", Settings.get("settingsVersion")) != -1
Settings.set("scrollStepSize", parseFloat Settings.get("scrollStepSize"))
Settings.set("settingsVersion", Utils.getCurrentVersion())
+
+# Migration (after 1.49, 2015/2/1).
+# Legacy setting: findModeRawQuery (a string).
+# New setting: findModeRawQueryList (a list of strings).
+unless Settings.has "findModeRawQueryList"
+ rawQuery = Settings.get "findModeRawQuery"
+ Settings.set "findModeRawQueryList", (if rawQuery then [ rawQuery ] else [])
+