I am able to play audio files by creating a shortcode that inserts the HTML element, but
every time I leave the page and come back to it it is disabled, and Chrome Inspect
console error: network error, promise was rejected. Clearing Chome cache resolves the
problem, but only temporarily. When I leave the page and come back the problem reappears.
Looks like a Chrome glitch. Any tips would be appreciated, Thanks.
Ah the famous topic 12321. For everyone not being introduced yet, we invented “Links” which will shine blue and when you click on it you end up on the topic… if done right.
[topic12321](https://discourse.gohugo.io/t/audio-and-how-to-play-it/12321)
like so: topic12321
We have lot’s of other helpful notes on how to request help, but maybe someone can help with the knowledge of topic topic12321.
Thanks, sorry about not includng the link.
I’ve isolated the problem to sw.js (in public directory), where there is a function saveToCache() that returns Promise<Response>
. Message is: Uncaught (in promise) TypeError: failed to convert value to Promise
(Line 50 of sw.js).
Clearing the Chrome cache fixes the problem, but only until the next page load.