mirror of
https://gitlab.com/Alamantus/Readlebee.git
synced 2025-05-07 02:31:15 +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) => {
|
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…
Add table
Reference in a new issue