We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ea575c commit 3326913Copy full SHA for 3326913
src/packages/frontend/frame-editors/html-editor/iframe-html.tsx
@@ -112,10 +112,6 @@ export const IFrameHTML: React.FC<Props> = React.memo((props: Props) => {
112
};
113
114
useEffect(() => {
115
- if (mode != "rmd") {
116
- setInit(false);
117
- return;
118
- }
119
let actual_path = path;
120
if (mode == "rmd" && derived_file_types != undefined) {
121
if (derived_file_types.contains("html")) {
@@ -270,7 +266,7 @@ export const IFrameHTML: React.FC<Props> = React.memo((props: Props) => {
270
266
return (
271
267
<iframe
272
268
ref={iframe}
273
- srcDoc={mode != "rmd" ? value : (srcDoc ?? "")}
269
+ srcDoc={!trust && mode != "rmd" ? value : (srcDoc ?? "")}
274
width={"100%"}
275
height={"100%"}
276
style={{ border: 0, ...style }}
0 commit comments