mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-31 13:08:15 +00:00
Fix Media Session listener scoping by moving it to root IIFE level in content.js
This commit is contained in:
@@ -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) {
|
} catch (e) {
|
||||||
@@ -1806,13 +1814,6 @@
|
|||||||
reportLog(`Media Action Error: ${e.message}`, 'error');
|
reportLog(`Media Action Error: ${e.message}`, 'error');
|
||||||
|
|
||||||
}
|
}
|
||||||
seekVideo(video, data.targetTime, data.delta);
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch (e) {
|
|
||||||
|
|
||||||
reportLog(`Media Action Error: ${e.message}`, 'error');
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user