网站和推流制作完成

This commit is contained in:
2025-08-08 16:07:49 +08:00
parent 3f67c118de
commit 7894b155dd
87 changed files with 26936 additions and 73 deletions

View File

@@ -0,0 +1,16 @@
let lastHeartbeat = Date.now();
self.onmessage = function(e) {
if (e.data.type === 'HEARTBEAT') {
const now = Date.now();
const delta = now - lastHeartbeat;
if (delta > 500) {
self.postMessage({ type: 'UI_BLOCKED' });
} else {
self.postMessage({ type: 'UI_RECOVERED' });
}
lastHeartbeat = now;
}
};