undo my weird changes - simplify logic

This commit is contained in:
Sean Yesmunt 2021-04-04 22:53:13 -04:00
parent 51bbda75ee
commit 822ab329ac

View file

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