diff options
| author | Jez Ng | 2012-01-25 12:53:19 -0500 |
|---|---|---|
| committer | Jez Ng | 2012-01-26 02:48:00 -0500 |
| commit | 8e746c4125066e7eda03126f0fd86c421eacfc44 (patch) | |
| tree | f0bc75b677e882f6c4c33f05befb9639da5f9234 /background | |
| parent | b8789c56b0ee96ee1eca75291028017c4f9d89cc (diff) | |
| download | vimium-8e746c4125066e7eda03126f0fd86c421eacfc44.tar.bz2 | |
Re-enable Vimium on the options page.
The options page now modifies localStorage using the same settings
interface as the content scripts.
Diffstat (limited to 'background')
| -rw-r--r-- | background/settings.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/background/settings.js b/background/settings.js index 51ac053c..c30e15ac 100644 --- a/background/settings.js +++ b/background/settings.js @@ -3,7 +3,7 @@ */ var settings = { - defaultSettings: { + defaults: { scrollStepSize: 60, linkHintCharacters: "sadfjklewcmpgh", filterLinkHints: false, @@ -50,14 +50,14 @@ var settings = { get: function(key) { if (!(key in localStorage)) - return this.defaultSettings[key]; + return this.defaults[key]; else return JSON.parse(localStorage[key]); }, set: function(key, value) { // don't store the value if it is equal to the default, so we can change the defaults in the future - if (value === this.defaultSettings[key]) + if (value === this.defaults[key]) this.clear(key); else localStorage[key] = JSON.stringify(value); |
