Skip to content

Commit

Permalink
fix error on teapot page
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Apr 29, 2024
1 parent 36a372a commit 11ccd0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coffee.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h1 class="display-3 my-5">I'm a teapot</h1>
})

let r = Math.random()
let id = ids.find((e) => r <= e[1]).shift() || ids[0][0]
let id = (ids.filter(e => r <= e[1]).shift() || ids[0])[0]

let img = document.getElementById('bucket')
img.src = `https://api.faithfulpack.net/v2/textures/${id}/url/faithful_64x/latest`
Expand Down

0 comments on commit 11ccd0f

Please sign in to comment.