Mercurial > web
diff music.html @ 70:629553bdc8aa
music: fix metadata fetching in chiptune2.js
turns out the function for getting ascii strings was deprecated, and now
I have to use a custom build of libopenmpt because there's no other way to do it.
YAY!
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 30 Sep 2023 02:32:41 -0400 |
parents | 2e645b936727 |
children |
line wrap: on
line diff
--- a/music.html Sat Sep 30 00:34:22 2023 -0400 +++ b/music.html Sat Sep 30 02:32:41 2023 -0400 @@ -47,7 +47,7 @@ if (metadata['title'] != '') document.getElementById('title').innerHTML = metadata['title']; else - document.getElementById('title').innerHTML = filename; + document.getElementById('title').innerHTML = filename.split(/[\\/]/).pop(); } function pauseButton() {