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