Refactor: Comprehensive Security and Architecture Audit (Self-Audit Fixes)

This commit is contained in:
Timo
2026-04-22 09:53:26 +02:00
parent 37ead94f76
commit 3ec10a52e4
2 changed files with 7 additions and 2 deletions
+4
View File
@@ -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');