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
}, 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)
)
})