feat: page title
This commit is contained in:
parent
1dcbe1f0ca
commit
1ef834db51
|
@ -37,6 +37,9 @@ export default function Chat() {
|
||||||
if (!hasChannel && validateChannel(channel)) {
|
if (!hasChannel && validateChannel(channel)) {
|
||||||
dispatch(submitJoin({channel: channel.toLowerCase(), id: user.id}));
|
dispatch(submitJoin({channel: channel.toLowerCase(), id: user.id}));
|
||||||
}
|
}
|
||||||
|
if (hasChannel) {
|
||||||
|
window.document.title = `${channel} | reddichat`;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
if (!allowedUser || !hasChannel) {
|
if (!allowedUser || !hasChannel) {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -19,7 +19,10 @@ export default function Home() {
|
||||||
else if (user.id) {
|
else if (user.id) {
|
||||||
path = '/chat';
|
path = '/chat';
|
||||||
}
|
}
|
||||||
dispatch(replace(path));
|
if (path) {
|
||||||
|
dispatch(replace(path));
|
||||||
|
}
|
||||||
|
window.document.title = 'reddichat';
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<div className="home">
|
<div className="home">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user