forked from Mirrors/elk
chore: fix titleTemplate param type
This commit is contained in:
parent
1f559fae08
commit
d34a5e6e96
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue