JSON error.

This commit is contained in:
Thomas Wilburn 2013-12-16 14:28:25 -08:00
parent 979596e1bd
commit fd577ed1be
2 changed files with 2 additions and 1 deletions

View file

@ -57,7 +57,7 @@
{ "label": "Default User Preferences", "command": "session:open-settings-defaults", "argument": "user" },
{ "label": "Default Keyboard", "command": "session:open-settings-defaults", "argument": "keys" },
{ "label": "Default Menus", "command": "session:open-settings-defaults", "argument": "menus" }
{ "label": "Default Menus", "command": "session:open-settings-defaults", "argument": "menus" },
{ "label": "Reset User Preferences", "command": "settings:delete-local", "argument": "user" },
{ "label": "Reset Keyboard", "command": "settings:delete-local", "argument": "keys" },
{ "label": "Reset Menus", "command": "settings:delete-local", "argument": "menus" }

View file

@ -6,6 +6,7 @@ define([
try {
list = JSON.parse(list);
} catch (e) {
console.error(e);
list = [];
}