feat: migrate from raw HTML to JSX (TSX / SolidJS) (#3583)

Co-authored-by: Su-Yong <simssy2205@gmail.com>
This commit is contained in:
JellyBrick
2025-07-09 23:14:11 +09:00
committed by GitHub
parent 9ccd126eee
commit e114e0ef44
90 changed files with 1723 additions and 1357 deletions

View File

@ -309,9 +309,10 @@ export default (
savedNotification?.close();
});
changeProtocolHandler((cmd, args) => {
changeProtocolHandler((cmd, ...args) => {
if (Object.keys(songControls).includes(cmd)) {
songControls[cmd as keyof typeof songControls](args as never);
// @ts-expect-error: cmd is a key of songControls
songControls[cmd as keyof typeof songControls](...args);
if (
config().refreshOnPlayPause &&
(cmd === 'pause' || (cmd === 'play' && !config().unpauseNotification))