mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-20 04:02:35 +00:00
1. Skip JavaScript validation for <script type="module"> tags - new Function() cannot validate ES module syntax (import/export) - Module scripts now execute without validation errors - Fixes issue where HTML artifacts with modules would fail to load 2. Improve __isExtensionContext detection logic - Changed from whitelist (chrome-extension://, moz-extension://) - To blacklist approach: negate http://, https://, file:// - More robust - handles all extension protocols (about:srcdoc, etc.) - Fixes "offline mode" errors when using browser_script artifacts Resolves artifacts not working in extension context after document.write() |
||
|---|---|---|
| .. | ||
| agent | ||
| ai | ||
| pods | ||
| proxy | ||
| tui | ||
| web-ui | ||