mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-20 11:47:09 +08:00
add preview html code
This commit is contained in:
@@ -77,7 +77,7 @@ export function HTMLPreview(props: { code: string }) {
|
|||||||
frameBorder={0}
|
frameBorder={0}
|
||||||
sandbox="allow-scripts"
|
sandbox="allow-scripts"
|
||||||
style={{ width: "100%", height: 400 }}
|
style={{ width: "100%", height: 400 }}
|
||||||
srcdoc={props.code}
|
srcDoc={props.code}
|
||||||
></iframe>
|
></iframe>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user