2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-02 22:44:04 +03:00

fix: dont update title on client with falsy value except empty string

This commit is contained in:
pimlie
2019-07-16 11:36:48 +02:00
parent 50c05090ae
commit 6efcdf10bd
+1 -1
View File
@@ -4,7 +4,7 @@
* @param {String} title - the new title of the document
*/
export default function updateTitle (title) {
if (title === undefined) {
if (!title && title !== '') {
return
}