1
0
Fork 0
mirror of https://github.com/mat-1/matdoesdev.git synced 2025-08-02 06:36:04 +00:00

show question mark for a cyber's world

This commit is contained in:
mat 2023-12-06 14:40:20 -06:00
parent 8d6c3608db
commit 3689182a7a

View file

@ -24,7 +24,7 @@
'Garoad - Every Day Is Night',
'Peppsen - Blueprint',
'Epic Mountain - Stellar Engines',
"Toby Fox - A CYBER'S WORLD",
"Toby Fox - A CYBER'S WORLD?",
'Toby Fox - Faint Glow',
'Toby Fox - My Castle Town',
]
@ -47,7 +47,7 @@
let currentSong_: string | null = null
$: if (musicPlayerEl) {
if (currentSong_ !== currentSong) {
const newSrc = `/retro/music/${currentSong}.mp3`
const newSrc = `/retro/music/${currentSong.replace(/\?/g, '')}.mp3`
musicPlayerEl.src = newSrc
musicPlayerEl.load()
currentSong_ = currentSong