traxxx/assets/js/set-page-title.js

11 lines
156 B
JavaScript
Raw Normal View History

function setPageTitle(name) {
if (name) {
document.title = `traxxx - ${name}`;
return;
}
document.title = 'traxxx';
}
export default setPageTitle;