Browse Source
Apply targeted improvements from web-serve-fix branch to resolve worker context issues with absurd-sql and SQL worker: - Add minimal worker-compatible polyfills to registerSQLWorker.js * window object polyfill for SQL.js compatibility * crypto.getRandomValues and crypto.subtle polyfills * Avoid setting read-only WorkerGlobalScope properties - Add crypto polyfill to AbsurdSqlDatabaseService.ts * Ensure crypto.getRandomValues available in worker context * Maintain existing URL-based WebAssembly loading strategy * Keep improved platform check for web/development modes Resolves "window is not defined" and "crypto is not defined" errors in Web Worker context while maintaining build stability and security. Files changed: 2 Lines added: 49pull/142/head
2 changed files with 49 additions and 0 deletions
Loading…
Reference in new issue