mirror of
https://gitlab.com/Alamantus/Readlebee.git
synced 2025-05-04 09:11:22 +02:00
Set title the Choo way
This commit is contained in:
parent
d687685a4c
commit
a5c0a7efe4
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue