Skip to content

Commit 6b81d1c

Browse files
committed
fix(iframe) add local network access permisson to iframe
1 parent 566b45f commit 6b81d1c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/iframe/iframe.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ const createIframe = (src: string): HTMLElement => {
55
iframe.style.setProperty("width", "100%");
66
iframe.style.setProperty("height", "100%");
77
iframe.style.setProperty("border", "none");
8-
iframe.allow = "clipboard-write";
9-
iframe.allow = "local-network-access"
10-
iframe.src = src;
8+
iframe.allow = "clipboard-write; local-network-access";
119

10+
iframe.src = src;
1211

1312
return wrapWithLoader(iframe);
1413
};

0 commit comments

Comments
 (0)