Skip to content

Commit

Permalink
Prevent update doc title from partial if not present
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbrasileiro committed Jan 12, 2024
1 parent ca8338e commit 54d3ab3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runtime/entrypoints/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,9 @@ export async function applyPartials(res: Response): Promise<void> {
}

// Update <head>
document.title = doc.title;
if (doc.title) {
document.title = doc.title;
}

// Needs to be converted to an array otherwise somehow <link>-tags
// are missing.
Expand Down

0 comments on commit 54d3ab3

Please # to comment.