Skip to content

Commit

Permalink
fix: ignore的 link 未正确设置 (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
jardenliu authored Mar 9, 2023
1 parent a7c0bcd commit ba57da9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/wujie-core/src/effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ function rewriteAppendOrInsertChild(opts: {
if (ignore && src) {
const stylesheetElement = iframeDocument.createElement("link");
stylesheetElement.setAttribute("type", "text/css");
stylesheetElement.setAttribute("ref", "stylesheet");
stylesheetElement.setAttribute("rel", "stylesheet");
stylesheetElement.setAttribute("href", src);
rawDOMAppendOrInsertBefore.call(this, stylesheetElement, refChild);
manualInvokeElementEvent(element, "load");
} else {
Expand Down

0 comments on commit ba57da9

Please sign in to comment.