diff options
| author | Stephen Blott | 2017-10-29 06:09:28 +0000 |
|---|---|---|
| committer | GitHub | 2017-10-29 06:09:28 +0000 |
| commit | 098d24d87f0a92ace37e8ebb1c4fb032b7c08d4c (patch) | |
| tree | 7795ce39ebcf411d519e4401a17d10f3513cc438 /lib/settings.coffee | |
| parent | 534a0f8c471ea96081b30fc2a57d183f6b4268c9 (diff) | |
| parent | 8d5a7d585e559c55f4ec766fdf151f7f2c0fff70 (diff) | |
| download | vimium-098d24d87f0a92ace37e8ebb1c4fb032b7c08d4c.tar.bz2 | |
Merge pull request #2750 from smblott-github/backup-settings
Add backup/restore for Vimium options.
Diffstat (limited to 'lib/settings.coffee')
| -rw-r--r-- | lib/settings.coffee | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/settings.coffee b/lib/settings.coffee index 11cf7557..fd1ef268 100644 --- a/lib/settings.coffee +++ b/lib/settings.coffee @@ -202,7 +202,7 @@ Settings.init() # Perform migration from old settings versions, if this is the background page. if Utils.isBackgroundPage() - Settings.onLoaded -> + Settings.applyMigrations = -> unless Settings.get "settingsVersion" # This is a new install. For some settings, we retain a legacy default behaviour for existing users but # use a non-default behaviour for new users. @@ -218,6 +218,8 @@ if Utils.isBackgroundPage() # be removed after 1.58 has been out for sufficiently long. Settings.nuke "copyNonDefaultsToChromeStorage-20150717" + Settings.onLoaded Settings.applyMigrations.bind Settings + root = exports ? (window.root ?= {}) root.Settings = Settings extend window, root unless exports? |
