Root cause: scale/panX/panY were declared with let at line 5014, but event handlers referencing them were registered before line 2771. Since the module has top-level awaits (offlineStore.open, sync.initFromCache), execution yields and events can fire before the let declarations, causing "Cannot access variable before initialization" TDZ errors. Fix: hoist scale/panX/panY declarations to before any await statements. Also add Cache-Control: no-cache for HTML files and immutable for Vite content-hashed assets to prevent stale bundle caching. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| public | ||
| admin.html | ||
| canvas.html | ||
| create-space.html | ||
| index.html | ||
| shell.ts | ||
| sw.ts | ||
| test-stack.html | ||