fix(mpris): use global regex to replace minus in the video ID (#1963)

This commit is contained in:
h-banii
2024-04-11 06:16:02 -03:00
committed by GitHub
parent 994fdaf436
commit bfe624dc57

View File

@ -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) => {