Fix Media Session listener scoping by moving it to root IIFE level in content.js

This commit is contained in:
Timo
2026-07-02 13:23:14 +02:00
parent 066d2c9407
commit 54b806d270
+8 -7
View File
@@ -1799,6 +1799,14 @@
});
} else if (action === EVENTS.PAUSE) {
_setSuppress('paused');
video.pause();
} else if (action === EVENTS.SEEK) {
seekVideo(video, data.targetTime, data.delta);
}
} catch (e) {
@@ -1806,13 +1814,6 @@
reportLog(`Media Action Error: ${e.message}`, 'error');
}
seekVideo(video, data.targetTime, data.delta);
}
} catch (e) {
reportLog(`Media Action Error: ${e.message}`, 'error');
}