Reset the page title in App if it doesn't look right

This commit is contained in:
Nick Pegg 2017-10-14 10:19:38 -07:00
parent 9b14fc82be
commit 02a17e1465

View file

@ -21,6 +21,11 @@ import { Page } from './Page';
class App extends Component {
render() {
// Ensure the title is something based on the configured title
if (!document.title.startsWith(config.title)) {
document.title = config.title;
}
return (
<Router>
<ScrollToTop>