chore: fix titleTemplate param type

This commit is contained in:
patak 2023-04-16 22:35:25 +02:00
parent 1f559fae08
commit d34a5e6e96

View file

@ -22,7 +22,7 @@ export function setupPageHeader() {
name: 'viewport',
content: () => `width=device-width,initial-scale=1${enablePinchToZoom.value ? '' : ',maximum-scale=1,user-scalable=0'},viewport-fit=cover`,
}],
titleTemplate: (title) => {
titleTemplate: (title?: string) => {
let titleTemplate = title ?? ''
if (titleTemplate.match(/&[a-z0-9#]+;/gi)) {