mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 17:05:22 +03:00
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