Resolved #1: replacing fetch with $.ajax()

This commit is contained in:
Alexander Yakovlev 2016-06-14 18:27:28 +07:00
parent 6bd79aa2d4
commit 0097a17186

View file

@ -27,11 +27,10 @@ continueToNextChoice = (s) ->
scrollTop: scrollTo scrollTop: scrollTo
}, 800) }, 800)
fetch('fogg.ink.json') $.ajax({
.then((response) -> url: 'fogg.ink.json',
return response.text() dataType: 'text',
) success: (data) ->
.then((data) ->
s = new inkjs.Story(data) s = new inkjs.Story(data)
continueToNextChoice(s) continueToNextChoice(s)
) })