Skip to content

Commit

Permalink
fix: iframe的style允许被覆盖 (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
woshirubbish authored Mar 9, 2023
1 parent f92942f commit a7c0bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wujie-core/src/iframe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ export function iframeGenerator(
appRoutePath: string
): HTMLIFrameElement {
const iframe = window.document.createElement("iframe");
const attrsMerge = { src: mainHostPath, ...attrs, style: "display: none", name: sandbox.id, [WUJIE_DATA_FLAG]: "" };
const attrsMerge = { src: mainHostPath, style: "display: none", ...attrs, name: sandbox.id, [WUJIE_DATA_FLAG]: "" };
setAttrsToElement(iframe, attrsMerge);
window.document.body.appendChild(iframe);

Expand Down

0 comments on commit a7c0bcd

Please sign in to comment.