more robust check on channel name

This commit is contained in:
Sean Yesmunt 2021-04-04 21:26:26 -04:00
parent 03ef30eb40
commit 105fe85504

View file

@ -160,9 +160,9 @@ function AppRouter(props: Props) {
if (typeof title !== 'undefined' && title !== '') {
document.title = title;
} else if (streamName) {
} else if (streamName !== undefined && streamName !== null) {
document.title = streamName;
} else if (channelName) {
} else if (channelName !== undefined && channelName !== null) {
document.title = channelName;
} else {
document.title = IS_WEB ? SITE_TITLE : 'LBRY';