From 419f7cc95ef2d9a491b6bfb548f97cc4bdb6533b Mon Sep 17 00:00:00 2001 From: ilya Date: Sat, 27 Feb 2010 19:55:55 -0800 Subject: Key Mapping - Don't try to parse key mappings unless there's actually something saved. --- background_page.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()) -- cgit v1.2.3