Skip to content

Commit 1f346cc

Browse files
authored
🐛 addStyle 代碼修正 (#500)
1 parent 55e2ecd commit 1f346cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/service/content/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ export function proxyContext(global: any, context: any, thisContext?: { [key: st
421421

422422
export function addStyle(css: string): HTMLElement {
423423
const dom = document.createElement("style");
424-
dom.innerHTML = css;
424+
dom.textContent = css;
425425
if (document.head) {
426426
return document.head.appendChild(dom);
427427
}

0 commit comments

Comments
 (0)