mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
fix(mpris): use global regex to replace minus in the video ID (#1963)
This commit is contained in:
@ -99,7 +99,7 @@ function registerMPRIS(win: BrowserWindow) {
|
||||
const microToSec = (n: number) => Math.round(Number(n) / 1e6);
|
||||
|
||||
const correctId = (videoId: string) => {
|
||||
return videoId.replace('-', '_MINUS_');
|
||||
return videoId.replace(/-/g, '_MINUS_');
|
||||
};
|
||||
|
||||
const seekTo = (event: Position) => {
|
||||
|
||||
Reference in New Issue
Block a user