Set title the Choo way
This commit is contained in:
parent
d687685a4c
commit
a5c0a7efe4
|
@ -1,6 +1,7 @@
|
||||||
export const appListeners = (app, state, emitter) => {
|
export const appListeners = (app, state, emitter) => {
|
||||||
emitter.on('DOMContentLoaded', () => {
|
emitter.on('DOMContentLoaded', () => {
|
||||||
document.title = app.siteConfig.siteName;
|
emitter.emit('DOMTitleChange', app.siteConfig.siteName);
|
||||||
|
|
||||||
// Emitter listeners
|
// Emitter listeners
|
||||||
emitter.on('render', callback => {
|
emitter.on('render', callback => {
|
||||||
// This is a dirty hack to get the callback to call *after* re-rendering.
|
// This is a dirty hack to get the callback to call *after* re-rendering.
|
||||||
|
|
Loading…
Reference in New Issue