Skip to content

Commit 02bc49b

Browse files
Update src/runtime/internal/dom.ts
Co-authored-by: Yuichiro Yamashita <[email protected]>
1 parent 8f7b155 commit 02bc49b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/internal/dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export function get_root_for_style(node: Node): ShadowRoot | Document {
156156

157157
export function append_stylesheet(node: ShadowRoot | Document, style: HTMLStyleElement) {
158158
append((node as Document).head || node, style);
159-
return style.sheet;
159+
return style.sheet as CSSStyleSheet;
160160
}
161161

162162
export function append_hydration(target: NodeEx, node: NodeEx) {

0 commit comments

Comments
 (0)