Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
refactor(nuxt)!: fix typo for NuxtRenderHTMLContext.bodyPrepend (#8712
Browse files Browse the repository at this point in the history
)
  • Loading branch information
agenordebriat committed Nov 7, 2022
1 parent 2376c11 commit b60f136
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/nuxt/src/core/runtime/nitro/renderer.ts
Expand Up @@ -21,7 +21,7 @@ export interface NuxtRenderHTMLContext {
htmlAttrs: string[]
head: string[]
bodyAttrs: string[]
bodyPreprend: string[]
bodyPrepend: string[]
body: string[]
bodyAppend: string[]
}
Expand Down Expand Up @@ -223,7 +223,7 @@ export default defineRenderHandler(async (event) => {
ssrContext.styles
]),
bodyAttrs: normalizeChunks([renderedMeta.bodyAttrs!]),
bodyPreprend: normalizeChunks([
bodyPrepend: normalizeChunks([
renderedMeta.bodyScriptsPrepend,
ssrContext.teleports?.body
]),
Expand Down Expand Up @@ -288,7 +288,7 @@ function renderHTMLDocument (html: NuxtRenderHTMLContext) {
return `<!DOCTYPE html>
<html ${joinAttrs(html.htmlAttrs)}>
<head>${joinTags(html.head)}</head>
<body ${joinAttrs(html.bodyAttrs)}>${joinTags(html.bodyPreprend)}${joinTags(html.body)}${joinTags(html.bodyAppend)}</body>
<body ${joinAttrs(html.bodyAttrs)}>${joinTags(html.bodyPrepend)}${joinTags(html.body)}${joinTags(html.bodyAppend)}</body>
</html>`
}

Expand Down

0 comments on commit b60f136

Please sign in to comment.