diff --git a/text_horror/app.js b/text_horror/app.js index 7387d74..c6643a3 100644 --- a/text_horror/app.js +++ b/text_horror/app.js @@ -9,7 +9,7 @@ function load() { .then(Response => Response.json()) .then(data => { dlgFile = data; - dlgLines = dlgFile[""]; + dlgLines = dlgFile; typeWriter(); }) } diff --git a/text_horror/dialogue.json b/text_horror/dialogue.json index 1fc9053..8bf071a 100644 --- a/text_horror/dialogue.json +++ b/text_horror/dialogue.json @@ -1,7 +1,5 @@ -{ - "": [ - "Hello welcome to TextHorror!", - "This is the second line", - "Aand a third line" - ] -} \ No newline at end of file +[ + "Hello welcome to TextHorror!", + "This is the second line", + "Aand a third line" +] \ No newline at end of file