File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
src/packages/frontend/frame-editors/html-editor Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -112,10 +112,6 @@ export const IFrameHTML: React.FC<Props> = React.memo((props: Props) => {
112
112
} ;
113
113
114
114
useEffect ( ( ) => {
115
- if ( mode != "rmd" ) {
116
- setInit ( false ) ;
117
- return ;
118
- }
119
115
let actual_path = path ;
120
116
if ( mode == "rmd" && derived_file_types != undefined ) {
121
117
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
270
width = { "100%" }
275
271
height = { "100%" }
276
272
style = { { border : 0 , ...style } }
You can’t perform that action at this time.
0 commit comments