diff --git a/game/game.coffee b/game/game.coffee index 1c390e6..917df5c 100644 --- a/game/game.coffee +++ b/game/game.coffee @@ -27,11 +27,10 @@ continueToNextChoice = (s) -> scrollTop: scrollTo }, 800) -fetch('fogg.ink.json') - .then((response) -> - return response.text() - ) - .then((data) -> +$.ajax({ + url: 'fogg.ink.json', + dataType: 'text', + success: (data) -> s = new inkjs.Story(data) continueToNextChoice(s) - ) +})