JSON error.
This commit is contained in:
parent
979596e1bd
commit
fd577ed1be
2 changed files with 2 additions and 1 deletions
|
@ -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" }
|
||||
|
|
|
@ -6,6 +6,7 @@ define([
|
|||
try {
|
||||
list = JSON.parse(list);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
list = [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue