Skip to content

Commit

Permalink
Allow removing the suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri1969 committed Sep 25, 2023
1 parent b5ac4d8 commit e514245
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ui/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,9 @@
this.loaded = true;
},
setTitleEnvSuffix() {
if (!this.envName) {
return;
}
const envSuffix = this.envName ? ` - ${this.envName}` : "";
document.title = document.title.replace(/( - .+)?$/, ` - ${this.envName}`);
document.title = document.title.replace(/( - .+)?$/, envSuffix);
},
async loadGeneralResources() {
let uid = localStorage.getItem("uid");
Expand Down

0 comments on commit e514245

Please sign in to comment.