Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-06-21 21:19:54 +0300
committerGitHub <noreply@github.com>2021-06-21 21:19:54 +0300
commitd3811374a64ad913e9fba0db99c4b69e039f5a7a (patch)
tree05aeda2ea50400bd783133b9fa1351bd25f6e2b0
parent9c5aad76f292601fd8d314a3ee351da49348f22c (diff)
parent2c3f5bd134b5559a9f1ac6a7bb1273fa8a6fd06e (diff)
Merge pull request #5831 from nextcloud/bugfix/noid/fix-asterix-conflict-with-notifications
Fix asterix conflict with notifications
-rw-r--r--src/App.vue9
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() {