@ulu/frontend-vue 0.1.0-beta.20 → 0.1.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17,7 +17,7 @@ import { pageTitles } from './usePageTitle.js';
|
|
|
17
17
|
*/
|
|
18
18
|
export function useDocumentTitle(options = {}) {
|
|
19
19
|
const {
|
|
20
|
-
titleTemplate = '%s
|
|
20
|
+
titleTemplate = '%s',
|
|
21
21
|
useRoute = defaultUseRoute,
|
|
22
22
|
useHead = defaultUseHead
|
|
23
23
|
} = options;
|
|
@@ -37,7 +37,7 @@ export function useDocumentTitle(options = {}) {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
// Format the title with the template, or provide a default.
|
|
40
|
-
return title ? titleTemplate.replace('%s', title) : '
|
|
40
|
+
return title ? titleTemplate.replace('%s', title) : 'App';
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
// useHead is reactive, so it will automatically update when documentTitle changes.
|