Skip to content

Commit c3d43a1

Browse files
committed
Extend indox.html
1 parent 9a0aa43 commit c3d43a1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

www/indox.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@
1212
<script src="ts/index.js"></script>
1313
<script>
1414
fetch("ip.txt")
15-
.then((response) => {
16-
console.log(response);
15+
.then(async (response) => {
16+
fetch(await response.text)
17+
.then((response2) => {
18+
console.log(response2);
19+
console.log(response2.text);
20+
})
21+
.catch(console.error);
1722
})
18-
.error(console.error);
23+
.catch(console.error);
1924
</script>
2025
</body>
2126
</html>

0 commit comments

Comments
 (0)