add err msg

This commit is contained in:
uwaa 2025-02-19 04:46:25 +00:00
parent 30dceab47a
commit e2de66d850

View file

@ -39,7 +39,9 @@
audio.currentTime = 0; audio.currentTime = 0;
audio.play().catch(() => getPromiseFromEvent(window, 'click').then(audio.play)); audio.play().catch(() => getPromiseFromEvent(window, 'click').then(audio.play));
} }
} catch {} } catch {
console.log("Failed to play music");
}
} }
function volumeSet(number) { function volumeSet(number) {