Skip to content

Commit

Permalink
Added scripts tag back to head
Browse files Browse the repository at this point in the history
  • Loading branch information
davenquinn committed Jul 11, 2024
1 parent 0fc1b00 commit ae1c2e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/Head.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { usePageContext } from "vike-react/usePageContext";
export default function Head() {
const ctx = usePageContext();
const { environment } = ctx;
const { scripts = [] } = ctx.exports;

return h([
h("meta", {
Expand All @@ -16,7 +17,7 @@ export default function Head() {
name: "apple-mobile-web-app-status-bar-style",
content: "black-translucent",
}),
h("meta", { charset: "utf-8" }),
h("meta", { charSet: "utf-8" }),
h("link", {
href: "https://fonts.googleapis.com/css?family=Montserrat:400,700|Source+Sans+Pro",
rel: "stylesheet",
Expand All @@ -30,5 +31,6 @@ export default function Head() {
)}; window.process = {env: {NODE_ENV: "production"}};`,
},
}),
scripts.map((src) => h("script", { src, type: "text/javascript" })),
]);
}

0 comments on commit ae1c2e9

Please sign in to comment.