File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/components/common/SidePanel Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ export const SidePanelDocumentation = ({ onClose }: SidePanelDocumentationProps)
18
18
sidePanelConfig : { docLink } ,
19
19
} = useMainContext ( )
20
20
21
+ // CONSTANTS
22
+ const iframeSrc = `${ docLink } &theme=${ appTheme } `
23
+
21
24
return (
22
25
< >
23
26
< div className = "px-16 pt-14 pb-13 border__primary--bottom flex dc__gap-12" >
@@ -51,14 +54,15 @@ export const SidePanelDocumentation = ({ onClose }: SidePanelDocumentationProps)
51
54
< div className = "flex-grow-1" >
52
55
{ docLink && (
53
56
< iframe
54
- key = { appTheme }
57
+ key = { iframeSrc }
55
58
title = "side-panel-documentation"
56
59
loading = "lazy"
57
60
className = "dc__no-border"
58
- src = { ` ${ docLink } &theme= ${ appTheme } ` }
61
+ src = { iframeSrc }
59
62
width = "100%"
60
63
height = "100%"
61
- sandbox = "allow-same-origin allow-scripts clipboard-read"
64
+ allow = "clipboard-read; clipboard-write"
65
+ sandbox = "allow-same-origin allow-scripts"
62
66
referrerPolicy = "no-referrer"
63
67
/>
64
68
) }
You can’t perform that action at this time.
0 commit comments