UBERF-7362: Do not cache branding served from front (#5889)

Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
Alexey Zinoviev
2024-06-21 12:59:02 +04:00
committed by GitHub
parent ece5c0ec6c
commit 55a030d383
4 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -205,7 +205,7 @@ export async function configurePlatform() {
configureI18n()
const config: Config = await (await fetch(devConfig? '/config-dev.json' : '/config.json')).json()
const branding: BrandingMap = await (await fetch(config.BRANDING_URL ?? '/branding.json')).json()
const branding: BrandingMap = config.BRANDING_URL !== undefined ? await (await fetch(config.BRANDING_URL)).json() : {}
const myBranding = branding[window.location.host] ?? {}
console.log('loading configuration', config)