feat(security): harden API export, remove global flags, unify scheduler

- Removed reliance on window.DEBUG_MODE and window.DISABLE_* flags.
- Configuration is now passed via constructor instead of global variables.
- Exposed API remains on `window.secureBitChat`, but without backup globals or hidden toggles.
- Consolidated multiple setInterval tasks into a single scheduler to reduce attack surface.
- Added strict limits for IV history and log storage to prevent memory exhaustion.
- Improved XSS hardening: no more global switches to disable security features.
This commit is contained in:
lockbitchat
2025-08-31 18:01:46 -04:00
parent 39ae9f01b7
commit 6c4d0eeaee

File diff suppressed because it is too large Load Diff