Skip to content

Commit

Permalink
fix(mpris): use global regex to replace minus in the video ID (#1963)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-banii authored Apr 11, 2024
1 parent 994fdaf commit bfe624d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/shortcuts/mpris.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit bfe624d

Please sign in to comment.