aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorilya2010-02-27 19:55:55 -0800
committerilya2010-02-27 19:55:55 -0800
commit419f7cc95ef2d9a491b6bfb548f97cc4bdb6533b (patch)
treee9dc0a8908c22b360c079fd831d2de638f501ba7
parent2dac5378e1bae571fc3ba539e262740186e4791c (diff)
downloadvimium-419f7cc95ef2d9a491b6bfb548f97cc4bdb6533b.tar.bz2
Key Mapping - Don't try to parse key mappings unless there's actually something saved.
-rw-r--r--background_page.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/background_page.html b/background_page.html
index b2493b3e..ada3e0f0 100644
--- a/background_page.html
+++ b/background_page.html
@@ -425,7 +425,9 @@
}
function init() {
- parseCustomKeyMappings(localStorage["keyMappings"]);
+ if (localStorage["keyMappings"])
+ parseCustomKeyMappings(localStorage["keyMappings"]);
+
populateValidFirstKeys();
populateSingleKeyCommands();
if (shouldShowUpgradeMessage())