mirror of
https://github.com/emuplace/folium.emuplace.app.git
synced 2024-11-21 18:02:47 +01:00
Fixed duped audio
Some checks failed
Deploy to Firebase Hosting on merge / build_and_deploy (push) Has been cancelled
Some checks failed
Deploy to Firebase Hosting on merge / build_and_deploy (push) Has been cancelled
This commit is contained in:
parent
d683b92130
commit
cf55b6f84b
@ -12,7 +12,7 @@ export default function NextCore() {
|
||||
|
||||
const audio = new Audio("https://quicksounds.com/uploads/tracks/528054973_948104858_1761723949.mp3")
|
||||
function play() {
|
||||
if (audio.duration <= 0 && audio.paused) {
|
||||
if (audio.paused) {
|
||||
audio.play()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user