Skip to content

Commit 66ea25c

Browse files
committed
Update jsonEditor.js
1 parent 37524cb commit 66ea25c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

public/javascripts/app/jsonEditor.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,19 @@ define(['jsoneditor'], function(JSONEditor) {
99
onModeChange : onModeChange
1010
};
1111
let editor = new JSONEditor(container, options);
12+
let initialJson = {
13+
"aps": {
14+
"alert": {
15+
"body": "body",
16+
"title": "title",
17+
"subtitle": "subtitle"
18+
},
19+
"badge": 1,
20+
"sound": "default"
21+
}
22+
}
1223

24+
editor.set(initialJson)
1325
insertValidateHTML();
1426

1527
function insertValidateHTML() {

0 commit comments

Comments
 (0)