chore: fix titleTemplate param type

zio/stable
patak 2023-04-16 22:35:25 +02:00
parent 1f559fae08
commit d34a5e6e96
1 changed files with 1 additions and 1 deletions

View File

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