fixed 0000020 v0.9-rc3
authorfoldericon <foldericon@gmail.com>
Fri, 9 Nov 2012 22:00:13 +0000 (23:00 +0100)
committerfoldericon <foldericon@gmail.com>
Fri, 9 Nov 2012 22:00:13 +0000 (23:00 +0100)
public/classes.js

index c5dbd3d23801181d85a4075e3c487af9a10b52dd..5a90594693311d27e45ac93a31d55cc87180fa8d 100644 (file)
@@ -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();