From be6f3bd08dbbfe20c10cd5dd01a67242109e9a16 Mon Sep 17 00:00:00 2001 From: foldericon Date: Fri, 9 Nov 2012 23:00:13 +0100 Subject: [PATCH] fixed 0000020 --- public/classes.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/public/classes.js b/public/classes.js index c5dbd3d..5a90594 100644 --- a/public/classes.js +++ b/public/classes.js @@ -488,9 +488,11 @@ var Utf8 = { data.perform = JSON.parse(data.perform); settings = data; } else { - settings = JSON.parse(localStorage.getItem('settings')); - settings.aliases = JSON.parse(settings.aliases); - settings.perform = JSON.parse(settings.perform); + if(localStorage && localStorage.getItem('settings')){ + settings = JSON.parse(localStorage.getItem('settings')); + settings.aliases = JSON.parse(settings.aliases); + settings.perform = JSON.parse(settings.perform); + } } if(settings.aliases){ var elmAliases = $$('.aliases tbody').first(); -- 2.20.1