You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
351 B
11 lines
351 B
import defaultSettings from '@/settings'
|
|
|
|
let _config_title = localStorage.getItem('browserTitle') == 'undefined' ? undefined : localStorage.getItem('browserTitle')
|
|
const title = _config_title || defaultSettings.title
|
|
|
|
export default function getPageTitle(pageTitle) {
|
|
if (pageTitle) {
|
|
return `${pageTitle} - ${title}`
|
|
}
|
|
return `${title}`
|
|
}
|
|
|