chore: fix titleTemplate param type
parent
1f559fae08
commit
d34a5e6e96
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue