chore: automated housekeeping...

This commit is contained in:
Pieter Vander Vennet 2025-01-28 15:42:34 +01:00
parent 6bc8760adf
commit 0ad881316b
359 changed files with 2049 additions and 938 deletions

View file

@ -27,7 +27,11 @@ export class WithUserRelatedState {
{
// Some weird setups
Utils.initDomPurify()
if (!Utils.runningFromConsole && theme.customCss !== undefined && window.location.pathname.indexOf("theme") >= 0) {
if (
!Utils.runningFromConsole &&
theme.customCss !== undefined &&
window.location.pathname.indexOf("theme") >= 0
) {
Utils.LoadCustomCss(theme.customCss)
}
}
@ -40,7 +44,7 @@ export class WithUserRelatedState {
"oauth_token",
undefined,
"Used to complete the login"
)
),
})
this.featureSwitchIsTesting = this.featureSwitches.featureSwitchIsTesting
@ -61,7 +65,7 @@ export class WithUserRelatedState {
icon: th.icon,
title: th.title.translations,
shortDescription: th.shortDescription.translations,
layers: th.layers.filter((l) => l.isNormal()).map((l) => l.id)
layers: th.layers.filter((l) => l.isNormal()).map((l) => l.id),
})
}
@ -103,5 +107,4 @@ export class WithUserRelatedState {
}
return this.theme.getMatchingLayer(properties)
}
}