diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-06-21 21:19:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 21:19:54 +0300 |
commit | d3811374a64ad913e9fba0db99c4b69e039f5a7a (patch) | |
tree | 05aeda2ea50400bd783133b9fa1351bd25f6e2b0 | |
parent | 9c5aad76f292601fd8d314a3ee351da49348f22c (diff) | |
parent | 2c3f5bd134b5559a9f1ac6a7bb1273fa8a6fd06e (diff) |
Merge pull request #5831 from nextcloud/bugfix/noid/fix-asterix-conflict-with-notifications
Fix asterix conflict with notifications
-rw-r--r-- | src/App.vue | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/App.vue b/src/App.vue index 839da9ed5..c40ce3607 100644 --- a/src/App.vue +++ b/src/App.vue @@ -391,11 +391,14 @@ export default { } } + let newTitle = this.defaultPageTitle if (title !== '') { - window.document.title = (showAsterix ? '* ' : '') + `${title} - ${this.defaultPageTitle}` - } else { - window.document.title = (showAsterix ? '* ' : '') + this.defaultPageTitle + newTitle = `${title} - ${newTitle}` + } + if (showAsterix && !newTitle.startsWith('* ')) { + newTitle = '* ' + newTitle } + window.document.title = newTitle }, onResize() { |