From ef680ab8b35aa6ad1a94e30b899f4f90756ae8c3 Mon Sep 17 00:00:00 2001 From: Michel EDIGHOFFER Date: Tue, 14 Feb 2023 15:42:53 +0100 Subject: [PATCH] fix: remove alone vertical bar on start (#1687) --- composables/setups.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/composables/setups.ts b/composables/setups.ts index ac4df9b0..d0e49dc8 100644 --- a/composables/setups.ts +++ b/composables/setups.ts @@ -43,7 +43,10 @@ export function setupPageHeader() { titleTemplate = `${titleTemplate.slice(0, 60)}...${titleTemplate.endsWith('"') ? '"' : ''}` } - titleTemplate += ` | ${t('app_name')}` + if (titleTemplate.length) + titleTemplate += ' | ' + + titleTemplate += t('app_name') if (buildInfo.env !== 'release') titleTemplate += ` (${buildInfo.env})`