From cf55b6f84bd0e132394f31d2735973fa006c5d34 Mon Sep 17 00:00:00 2001 From: Jarrod Norwell Date: Thu, 7 Nov 2024 22:27:30 +0800 Subject: [PATCH] Fixed duped audio --- src/NextCore/NextCore.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NextCore/NextCore.tsx b/src/NextCore/NextCore.tsx index 8e89a21..ec4e05b 100644 --- a/src/NextCore/NextCore.tsx +++ b/src/NextCore/NextCore.tsx @@ -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() } }