Skip to content

Commit

Permalink
fix #1547 add noscript tags to asset rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Jun 18, 2024
1 parent 23ee2de commit 9da8b18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/calm-rocks-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@solidjs/start": patch
---

fix #1547 add noscript tags to asset rendering
5 changes: 4 additions & 1 deletion packages/start/src/server/renderAsset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ const assetMap = {
{" "}
</script>
) : null;
}
},
noscript: (props: { attrs: JSX.HTMLAttributes<HTMLElement>; children: JSX.Element }) => (
<noscript {...props.attrs}>{props.children}</noscript>
),
};

export function renderAsset(asset: Asset, nonce?: string) {
Expand Down

0 comments on commit 9da8b18

Please sign in to comment.