aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcalledude <[email protected]>2024-10-18 16:06:39 +0200
committercalledude <[email protected]>2024-10-18 22:47:45 +0200
commit0c3aa922ca2e651249fbdadc58a725226216df90 (patch)
treeab59f77f5d0740d74d119703c0e1089ebbd1fe04
parent875ec357d9f352f5b1b32ded0b51e27b5805e32a (diff)
downloadSponsorBlock-0c3aa922ca2e651249fbdadc58a725226216df90.tar.gz
SponsorBlock-0c3aa922ca2e651249fbdadc58a725226216df90.zip
Fix skip audio notification not working on firefox
-rw-r--r--manifest/chrome-manifest-extra.json2
-rw-r--r--manifest/manifest-v2-extra.json2
-rw-r--r--public/icons/beep.oga (renamed from public/icons/beep.ogg)bin4706 -> 4706 bytes
-rw-r--r--src/content.ts2
4 files changed, 3 insertions, 3 deletions
diff --git a/manifest/chrome-manifest-extra.json b/manifest/chrome-manifest-extra.json
index 4fa0fed7..fbfe2242 100644
--- a/manifest/chrome-manifest-extra.json
+++ b/manifest/chrome-manifest-extra.json
@@ -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",
diff --git a/manifest/manifest-v2-extra.json b/manifest/manifest-v2-extra.json
index 1c33efe7..e9dad9f3 100644
--- a/manifest/manifest-v2-extra.json
+++ b/manifest/manifest-v2-extra.json
@@ -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",
diff --git a/public/icons/beep.ogg b/public/icons/beep.oga
index 37f92fe4..37f92fe4 100644
--- a/public/icons/beep.ogg
+++ b/public/icons/beep.oga
Binary files differ
diff --git a/src/content.ts b/src/content.ts
index 3596a70d..fbb73bef 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -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();