Resolved #1: replacing fetch with $.ajax()
This commit is contained in:
parent
6bd79aa2d4
commit
0097a17186
|
@ -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)
|
||||||
)
|
})
|
||||||
|
|
Loading…
Reference in a new issue