Skip to content

Commit 5ecdc99

Browse files
committed
Update for Chrome
1 parent fcdb3ea commit 5ecdc99

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/js/service-worker.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,10 @@ async function setDefaultOptions(defaultOptions) {
264264
*/
265265
async function onCompleted(details) {
266266
// console.log('onCompleted:', details)
267-
if (details.documentUrl.startsWith('moz-extension')) {
267+
if (
268+
details.documentUrl?.startsWith('moz-extension') ||
269+
details.initiator?.startsWith('chrome-extension')
270+
) {
268271
return
269272
}
270273
if (details.url.endsWith('.m3u8')) {

0 commit comments

Comments
 (0)