Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alexyuly committed Oct 19, 2024
1 parent 9849cca commit 2ac10af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ async function applyImportsToDomElement(domElement, context) {
const childrenSlots =
importDom.window.document.querySelectorAll("slot:not([name])");

for (const importSlot of childrenSlots) {
importSlot.replaceWith(...importedElement.childNodes);
for (const childrenSlot of childrenSlots) {
childrenSlot.replaceWith(...importedElement.childNodes);
}

importedElement.replaceWith(...importDom.window.document.body.childNodes);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "viewscript-ssr",
"version": "1.0.0",
"version": "1.0.1",
"author": "Alex Yuly",
"license": "MIT",
"main": "main.js",
Expand Down

0 comments on commit 2ac10af

Please sign in to comment.