Skip to content

Commit

Permalink
fix: decode json
Browse files Browse the repository at this point in the history
  • Loading branch information
stanley2058 committed Jul 29, 2024
1 parent 63d9291 commit 656efcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
async function fetchConfig () {
const { serverUrl } = await fetch('/config')
const { serverUrl } = await fetch('/config').then((res) => res.json())
window.serverUrl = serverUrl
await import('./magic.js')
}
Expand Down

0 comments on commit 656efcf

Please sign in to comment.