fix: theme global initialisation when not defined was wrong (#3542)
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -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(';'))
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user