Fix title being page not found even after page has loaded

This commit is contained in:
William Blythe
2018-12-31 08:18:36 +11:00
parent a073692632
commit 593f069806

View File

@@ -70,6 +70,13 @@ export default class Page extends React.Component {
document.title = this.state.title || 'Coriolis';
}
/**
* Update the window title upon mount
*/
componentDidMount() {
document.title = this.state.title || 'Coriolis';
}
/**
* Updates the title upon change
* @param {Object} newProps Incoming properties