diff options
| author | Jez Ng | 2012-02-27 00:05:54 -0500 |
|---|---|---|
| committer | Jez Ng | 2012-02-27 01:22:57 -0500 |
| commit | 3b90d2a1d39da56dfb78583c6fe7f6be835e56a4 (patch) | |
| tree | 358e36872c45f3d7174d33ab60d87bfd5c227609 /background/settings.js | |
| parent | bd48e3671181fcd10ede588e96aa45f0d81a07d4 (diff) | |
| download | vimium-3b90d2a1d39da56dfb78583c6fe7f6be835e56a4.tar.bz2 | |
Store checkbox state as a boolean.
Diffstat (limited to 'background/settings.js')
| -rw-r--r-- | background/settings.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/background/settings.js b/background/settings.js index 34cdcdcc..a00317b0 100644 --- a/background/settings.js +++ b/background/settings.js @@ -43,7 +43,11 @@ var settings = { // 1.31 was also the version where we converted all localStorage values to JSON. if (!this.has("settingsVersion")) { for (var key in localStorage) { - localStorage[key] = JSON.stringify(localStorage[key]); + // filterLinkHints' checkbox state used to be stored as a string + if (key == "filterLinkHints") + localStorage[key] = localStorage[key] === "true" ? true : false; + else + localStorage[key] = JSON.stringify(localStorage[key]); } this.set("settingsVersion", utils.getCurrentVersion()); } |
