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