11 lines
156 B
JavaScript
11 lines
156 B
JavaScript
|
function setPageTitle(name) {
|
||
|
if (name) {
|
||
|
document.title = `traxxx - ${name}`;
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
document.title = 'traxxx';
|
||
|
}
|
||
|
|
||
|
export default setPageTitle;
|