mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-19 18:20:34 +03:00
fix: dont change title when value is undefined (fix #396)
This commit is contained in:
@@ -3,6 +3,10 @@
|
||||
*
|
||||
* @param {String} title - the new title of the document
|
||||
*/
|
||||
export default function updateTitle(title = document.title) {
|
||||
export default function updateTitle(title) {
|
||||
if (title === undefined) {
|
||||
return
|
||||
}
|
||||
|
||||
document.title = title
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
// set some sane defaults
|
||||
export const defaultInfo = {
|
||||
title: '',
|
||||
title: undefined,
|
||||
titleChunk: '',
|
||||
titleTemplate: '%s',
|
||||
htmlAttrs: {},
|
||||
|
||||
Reference in New Issue
Block a user