vikunja-frontend/src/helpers/setTitle.js

8 lines
170 B
JavaScript
Raw Normal View History

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