Set title the Choo way

This commit is contained in:
Robbie Antenesse 2020-09-16 14:00:45 -06:00
parent d687685a4c
commit a5c0a7efe4
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
export const appListeners = (app, state, emitter) => {
emitter.on('DOMContentLoaded', () => {
document.title = app.siteConfig.siteName;
emitter.emit('DOMTitleChange', app.siteConfig.siteName);
// Emitter listeners
emitter.on('render', callback => {
// This is a dirty hack to get the callback to call *after* re-rendering.