undo my weird changes - simplify logic
This commit is contained in:
parent
51bbda75ee
commit
822ab329ac
1 changed files with 3 additions and 3 deletions
|
@ -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';
|
||||||
|
|
Loading…
Reference in a new issue