mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-28 11:37:16 +00:00
Refactor: Comprehensive Security and Architecture Audit (Self-Audit Fixes)
This commit is contained in:
@@ -101,13 +101,17 @@
|
||||
} else if (action === 'seek') {
|
||||
tryMediaAction('seek', payload);
|
||||
} else if (action === 'force_sync_prepare') {
|
||||
isProcessingCommand = true;
|
||||
const video = findVideo();
|
||||
if (video) {
|
||||
video.pause();
|
||||
video.currentTime = payload.targetTime;
|
||||
pollSeekReady(payload.targetTime).then(() => {
|
||||
chrome.runtime.sendMessage({ type: 'FORCE_SYNC_ACK' });
|
||||
setTimeout(() => { isProcessingCommand = false; }, 1000);
|
||||
});
|
||||
} else {
|
||||
isProcessingCommand = false;
|
||||
}
|
||||
} else if (action === 'force_sync_execute') {
|
||||
tryMediaAction('play');
|
||||
|
||||
Reference in New Issue
Block a user