9 lines
171 B
JavaScript
9 lines
171 B
JavaScript
|
|
export const setTitle = title => {
|
|
if (typeof title === 'undefined' || title === '') {
|
|
document.title = 'Vikunja'
|
|
return
|
|
}
|
|
|
|
document.title = `${title} | Vikunja`
|
|
} |