Skip to content

Commit 6efcdf1

Browse files
committed
fix: dont update title on client with falsy value except empty string
1 parent 50c0509 commit 6efcdf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/updaters/title.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @param {String} title - the new title of the document
55
*/
66
export default function updateTitle (title) {
7-
if (title === undefined) {
7+
if (!title && title !== '') {
88
return
99
}
1010

0 commit comments

Comments
 (0)