Skip to content

Commit

Permalink
Scripts sist
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-nom committed Jul 19, 2024
1 parent 78789d5 commit 69e93ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dependencies": {
"csp-header": "5.2.1",
"html-react-parser": "3.0.16",
"node-cache": "^5.1.2"
"node-cache": "5.1.2"
},
"comments": {
"jsdom": "More recent versions crashes when parsing in some environments (for unknown reasons). Keep 16.x as minimum for now, and consider switching to a different parser."
Expand Down
2 changes: 1 addition & 1 deletion src/ssr/functions/ssr-dom-injection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export const injectDecoratorServerSideDom = async ({
const { head, body } = dom.window.document;
head.insertAdjacentHTML("beforeend", elements.DECORATOR_HEAD_ASSETS);
head.insertAdjacentHTML("beforeend", elements.DECORATOR_STYLES);
head.insertAdjacentHTML("beforeend", elements.DECORATOR_SCRIPTS);
body.insertAdjacentHTML("afterbegin", elements.DECORATOR_HEADER);
body.insertAdjacentHTML("beforeend", elements.DECORATOR_FOOTER);
head.insertAdjacentHTML("beforeend", elements.DECORATOR_SCRIPTS);
return dom.serialize();
});

0 comments on commit 69e93ca

Please sign in to comment.