From ba57da9aee153652372a048bde7974672340d265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=81=E5=90=9B=E9=85=B1?= <15915839707@163.com> Date: Thu, 9 Mar 2023 09:57:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ignore=E7=9A=84=20link=20=E6=9C=AA?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E8=AE=BE=E7=BD=AE=20(#432)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/wujie-core/src/effect.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/wujie-core/src/effect.ts b/packages/wujie-core/src/effect.ts index 7a25f6b7a..11e3f900b 100644 --- a/packages/wujie-core/src/effect.ts +++ b/packages/wujie-core/src/effect.ts @@ -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 {