diff options
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/ServicesStore.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index e52d661f3..926ee36f0 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -690,6 +690,9 @@ export default class ServicesStore extends Store { | |||
690 | // TODO: add checks to not focus service when router path is /settings or /auth | 690 | // TODO: add checks to not focus service when router path is /settings or /auth |
691 | const service = this.active; | 691 | const service = this.active; |
692 | if (service) { | 692 | if (service) { |
693 | document.title = `Ferdi - ${service.name} ${ | ||
694 | service.dialogTitle ? ` - ${service.dialogTitle}` : '' | ||
695 | } ${service._webview ? `- ${service._webview.getTitle()}` : ''}`; | ||
693 | this._focusService({ serviceId: service.id }); | 696 | this._focusService({ serviceId: service.id }); |
694 | if (this.stores.settings.app.splitMode && !focusEvent) { | 697 | if (this.stores.settings.app.splitMode && !focusEvent) { |
695 | setTimeout(() => { | 698 | setTimeout(() => { |
@@ -1082,7 +1085,7 @@ export default class ServicesStore extends Store { | |||
1082 | this.actions.service.focusService({ serviceId: service.id }); | 1085 | this.actions.service.focusService({ serviceId: service.id }); |
1083 | document.title = `Ferdi - ${service.name} ${ | 1086 | document.title = `Ferdi - ${service.name} ${ |
1084 | service.dialogTitle ? ` - ${service.dialogTitle}` : '' | 1087 | service.dialogTitle ? ` - ${service.dialogTitle}` : '' |
1085 | }`; | 1088 | } ${service._webview ? `- ${service._webview.getTitle()}` : ''}`; |
1086 | } else { | 1089 | } else { |
1087 | debug('No service is active'); | 1090 | debug('No service is active'); |
1088 | } | 1091 | } |