Reset the page title in App if it doesn't look right
This commit is contained in:
parent
9b14fc82be
commit
02a17e1465
1 changed files with 5 additions and 0 deletions
|
|
@ -21,6 +21,11 @@ import { Page } from './Page';
|
||||||
|
|
||||||
class App extends Component {
|
class App extends Component {
|
||||||
render() {
|
render() {
|
||||||
|
// Ensure the title is something based on the configured title
|
||||||
|
if (!document.title.startsWith(config.title)) {
|
||||||
|
document.title = config.title;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Router>
|
<Router>
|
||||||
<ScrollToTop>
|
<ScrollToTop>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue