Skip to content

Commit 8d533d7

Browse files
committed
fix: 修复沙箱权限问题
1 parent 8bd1b79 commit 8d533d7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

js/src/FileManager.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,11 +1212,11 @@ export const FileManager = ({ onClose }: FileManagerProps) => {
12121212
{previewFile.type === 'html' && previewFile.content && (
12131213
<div className="html-preview-stage">
12141214
<div className="html-preview-wrapper">
1215-
<iframe
1216-
srcDoc={previewFile.content}
1217-
className="html-preview"
1218-
sandbox="allow-scripts allow-same-origin allow-forms allow-popups allow-modals"
1219-
/>
1215+
<iframe
1216+
srcDoc={previewFile.content}
1217+
className="html-preview"
1218+
sandbox="allow-scripts allow-forms allow-popups allow-modals"
1219+
/>
12201220
</div>
12211221
</div>
12221222
)}

0 commit comments

Comments
 (0)