Skip to content

Commit

Permalink
chore: simplify internal DOM operations
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed May 23, 2024
1 parent a8e21d4 commit 430388d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/svelte/src/internal/client/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ export async function append_styles(target, style_sheet_id, styles) {
const style = create_element('style');
style.id = style_sheet_id;
style.textContent = styles;
/** @type {Document} */ (append_styles_to.head || append_styles_to).appendChild(style);
const target = /** @type {Document} */ (append_styles_to).head || append_styles_to;
target.appendChild(style);
}
}

Expand Down

0 comments on commit 430388d

Please sign in to comment.