This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
2022-01-30 15:47:23 +00:00
|
|
|
export function setTitle(title : undefined | string) {
|
2021-11-14 20:57:36 +00:00
|
|
|
document.title = (typeof title === 'undefined' || title === '')
|
|
|
|
? 'Vikunja'
|
|
|
|
: `${title} | Vikunja`
|
2020-07-07 20:07:13 +00:00
|
|
|
}
|