Skip to content

Fix html preview js#7199

Open
siiigure wants to merge 1 commit into
labring:mainfrom
siiigure:fix-html-preview-js
Open

Fix html preview js#7199
siiigure wants to merge 1 commit into
labring:mainfrom
siiigure:fix-html-preview-js

Conversation

@siiigure

Copy link
Copy Markdown
Contributor

bug:AI对话那生成代码,预览时可以显示HTML的部分,但是无法显示JavaScript的部分
原本预览那里用的是 iframe 的 sandbox,也就是写了啥,iframe 里就只能用啥。
现在的改成了JS 可以执行,但仍隔离在 sandbox 里,不能拿主站上下文。

@siiigure siiigure force-pushed the fix-html-preview-js branch from b83dc9c to c5adb2c Compare July 6, 2026 02:30
@c121914yu

Copy link
Copy Markdown
Collaborator

这个改的目的是什么?哪个需求的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants