This is great! I love the extra spin animation on the dice, that's a really nice touch.
There's only one thing I have to suggest. Fetching advice doesn't seem to work on Firefox. To fix this, all you have to do is add {cache: "no-cache"}
as a second parameter on the fetch
function. That would look something like this:
const response = await fetch('https://api.adviceslip.com/advice', {cache: "no-cache"});
This does remove the two second cooldown on Chrome, though that may be unwanted.
Hope this helps!
Marked as helpful
@MarjanZivkovic
Posted
@FrostemanNeogard Thank you! Had to install Firefox to check it, and you're right. Not working! Thanks a lot! This was helpful