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();