From 822ab329ac004d668b1c325b3e174809ec65d7ce Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Sun, 4 Apr 2021 22:53:13 -0400 Subject: [PATCH] undo my weird changes - simplify logic --- ui/component/router/view.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/component/router/view.jsx b/ui/component/router/view.jsx index 4fe24fa26..9269b72e9 100644 --- a/ui/component/router/view.jsx +++ b/ui/component/router/view.jsx @@ -158,11 +158,11 @@ function AppRouter(props: Props) { if (uri) { const { channelName, streamName } = parseURI(uri); - if (typeof title !== 'undefined' && title !== '') { + if (title) { document.title = title; - } else if (streamName !== undefined && streamName !== null) { + } else if (streamName) { document.title = streamName; - } else if (channelName !== undefined && channelName !== null) { + } else if (channelName) { document.title = channelName; } else { document.title = IS_WEB ? SITE_TITLE : 'LBRY';