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