Spaces:
Sleeping
Sleeping
| // @ts-nocheck | |
| import { automationMode, readStoredScanMs } from "./config.js"; | |
| import { recordDebugTrace } from "./debug.js"; | |
| export const storedScanMs = readStoredScanMs(); | |
| export const state = window.__trackwhatDesktopCaptureState || { | |
| active: false, | |
| stream: null, | |
| video: null, | |
| timer: null, | |
| scanTimer: null, | |
| previewTimer: null, | |
| countdownTimer: null, | |
| nextScanAt: null, | |
| canvas: null, | |
| scanMs: storedScanMs, | |
| automationMode, | |
| source: '🖥 Screen', | |
| analysisPending: false, | |
| analysisStartTimer: null, | |
| analysisStartedAt: 0, | |
| sessionStartedAt: null, | |
| allowAnalysisClick: false, | |
| analysisObserver: null, | |
| analysisGuardTimer: null, | |
| analysisStartSignature: '', | |
| analysisSawResultChange: false, | |
| analysisSawButtonBusy: false, | |
| analysisCompletionTicker: null, | |
| analysisCompletionArmedAt: 0, | |
| analysisRearmNextScan: true, | |
| analysisOneShot: false, | |
| captureAndAnalyze: null, | |
| loopPaused: false, | |
| sessionPausedMs: 0, | |
| sessionPauseStartedAt: null, | |
| lastProjectName: '', | |
| sameProjectStreak: 0, | |
| smartDelayMs: 0, | |
| debugTrace: [], | |
| }; | |
| state.scanMs = storedScanMs; | |
| window['__trackwhatDesktopCaptureTrace'] = recordDebugTrace; | |