Skip to content

Commit 4390c3e

Browse files
committed
Update fill.js
1 parent 349973e commit 4390c3e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

javascripts/fill.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ async function init(path) {
4141
path +
4242
"/main/javascripts/index.json"
4343
)
44-
.then((response) => response.json())
44+
.then(function (response) {
45+
return response.json();
46+
})
4547
.catch(console.error);
4648
console.debug("Fetched index");
4749
content.push(document.createElement("hr"));
@@ -92,7 +94,9 @@ async function init(path) {
9294
encodeURIComponent(index[i].name) +
9395
".js"
9496
)
95-
.then((response) => response.text())
97+
.then(function (response) {
98+
return response.text();
99+
})
96100
.catch(console.error);
97101
console.debug("Fetched source code for " + index[i].name);
98102
var book = document.createElement("h4");

0 commit comments

Comments
 (0)