fix: theme global initialisation when not defined was wrong (#3542)

This commit is contained in:
dni ⚡ 2025-11-20 11:59:00 +01:00 committed by GitHub
parent b9a004a5e4
commit 3e0d0d9896
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View file

@ -32,19 +32,19 @@ window.g = Vue.reactive({
themeChoice: localStore('lnbits.theme', WINDOW_SETTINGS.LNBITS_DEFAULT_THEME), themeChoice: localStore('lnbits.theme', WINDOW_SETTINGS.LNBITS_DEFAULT_THEME),
borderChoice: localStore( borderChoice: localStore(
'lnbits.border', 'lnbits.border',
WINDOW_SETTINGS.LNBITS_DEFAULT_REACTION WINDOW_SETTINGS.LNBITS_DEFAULT_BORDER || 'hard-border'
), ),
gradientChoice: localStore( gradientChoice: localStore(
'lnbits.gradientBg', 'lnbits.gradientBg',
WINDOW_SETTINGS.LNBITS_DEFAULT_GRADIENT WINDOW_SETTINGS.LNBITS_DEFAULT_GRADIENT || false
), ),
reactionChoice: localStore( reactionChoice: localStore(
'lnbits.reactions', 'lnbits.reactions',
WINDOW_SETTINGS.LNBITS_DEFAULT_REACTION WINDOW_SETTINGS.LNBITS_DEFAULT_REACTION || 'confettiBothSides'
), ),
bgimageChoice: localStore( bgimageChoice: localStore(
'lnbits.backgroundImage', 'lnbits.backgroundImage',
WINDOW_SETTINGS.LNBITS_DEFAULT_BGIMAGE WINDOW_SETTINGS.LNBITS_DEFAULT_BGIMAGE || ''
), ),
ads: WINDOW_SETTINGS.AD_SPACE.split(',').map(ad => ad.split(';')) ads: WINDOW_SETTINGS.AD_SPACE.split(',').map(ad => ad.split(';'))
}) })