We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1365f2 commit 9a327dcCopy full SHA for 9a327dc
client/web/src/components/Markdown/render.tsx
@@ -47,8 +47,12 @@ export const Markdown: React.FC<{
47
iframe: (props) => {
48
let src = props.src;
49
50
- if (src?.includes('javascript')) {
51
- return <div>not support run javascript</div>;
+ if (!src) {
+ return <div />;
52
+ }
53
+
54
+ if (!src.startsWith('http')) {
55
+ return <div>only support http source</div>;
56
}
57
58
if (src && src.includes('?')) {
0 commit comments