Skip to content

Commit

Permalink
This should work
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Zhong <69879040+Brunozhon@users.noreply.github.com>
  • Loading branch information
Brunozhon committed Aug 29, 2023
1 parent 2bbab8a commit f8b7d15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ <h1>The Bruno Store</h1>
document.querySelector("audio").play()
// Generate book list
const itemsFetch = await fetch("items.json")
const items = await itemsFetch.json()
let items = await itemsFetch.text()
items = JSON.parse(items)
let html = ""
for (const book in items) {
html += `<h2>${book}</h2>
Expand Down

0 comments on commit f8b7d15

Please sign in to comment.