Skip to content

Commit

Permalink
Merge pull request #2135 from calledude/master
Browse files Browse the repository at this point in the history
Fix skip audio notification not working on firefox
  • Loading branch information
ajayyy authored Oct 29, 2024
2 parents 4a134d7 + 0c3aa92 commit b2ac881
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest/chrome-manifest-extra.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"icons/close.png",
"icons/skipIcon.svg",
"icons/refresh.svg",
"icons/beep.ogg",
"icons/beep.oga",
"icons/pause.svg",
"icons/stop.svg",
"icons/skip.svg",
Expand Down
2 changes: 1 addition & 1 deletion manifest/manifest-v2-extra.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"icons/close.png",
"icons/skipIcon.svg",
"icons/refresh.svg",
"icons/beep.ogg",
"icons/beep.oga",
"icons/pause.svg",
"icons/stop.svg",
"icons/skip.svg",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,7 @@ function skipToTime({v, skipTime, skippingSegments, openNotice, forceAutoSkip, u

if (autoSkip && Config.config.audioNotificationOnSkip
&& !isSubmittingSegment && !getVideo()?.muted) {
const beep = new Audio(chrome.runtime.getURL("icons/beep.ogg"));
const beep = new Audio(chrome.runtime.getURL("icons/beep.oga"));
beep.volume = getVideo().volume * 0.1;
const oldMetadata = navigator.mediaSession.metadata
beep.play();
Expand Down

0 comments on commit b2ac881

Please sign in to comment.