Update src/runtime/internal/dom.ts

Co-authored-by: Yuichiro Yamashita <xydybaseball@gmail.com>
pull/7260/head
Mathias Picker 4 years ago committed by GitHub
parent 8f7b155e56
commit 02bc49b061
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -156,7 +156,7 @@ export function get_root_for_style(node: Node): ShadowRoot | Document {
export function append_stylesheet(node: ShadowRoot | Document, style: HTMLStyleElement) {
append((node as Document).head || node, style);
return style.sheet;
return style.sheet as CSSStyleSheet;
}
export function append_hydration(target: NodeEx, node: NodeEx) {

Loading…
Cancel
Save