Another small one (#2954)

This commit is contained in:
Tiago Vasconcelos 2025-02-12 08:56:22 +00:00 committed by GitHub
parent b33a1903e8
commit 15ba3c33a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 6 deletions

File diff suppressed because one or more lines are too long

View file

@ -480,19 +480,19 @@ window.windowMixin = {
gradientSelection: false,
borderChoice: this.$q.localStorage.has('lnbits.border')
? this.$q.localStorage.getItem('lnbits.border')
: USE_DEFAULT_BORDER,
: this.USE_DEFAULT_BORDER,
gradientChoice: this.$q.localStorage.has('lnbits.gradientBg')
? this.$q.localStorage.getItem('lnbits.gradientBg')
: USE_DEFAULT_GRADIENT,
: this.USE_DEFAULT_GRADIENT,
themeChoice: this.$q.localStorage.has('lnbits.theme')
? this.$q.localStorage.getItem('lnbits.theme')
: USE_DEFAULT_THEME,
: this.USE_DEFAULT_THEME,
reactionChoice: this.$q.localStorage.has('lnbits.reactions')
? this.$q.localStorage.getItem('lnbits.reactions')
: USE_DEFAULT_REACTION,
: this.USE_DEFAULT_REACTION,
bgimageChoice: this.$q.localStorage.has('lnbits.backgroundImage')
? this.$q.localStorage.getItem('lnbits.backgroundImage')
: USE_DEFAULT_BGIMAGE,
: this.USE_DEFAULT_BGIMAGE,
isUserAuthorized: false,
walletEventListeners: [],
backgroundImage: ''
@ -835,6 +835,12 @@ window.windowMixin = {
? this.$q.localStorage.getItem('lnbits.darkMode')
: true
)
this.USE_DEFAULT_BORDER = USE_DEFAULT_BORDER
this.USE_DEFAULT_GRADIENT = USE_DEFAULT_GRADIENT
this.USE_DEFAULT_THEME = USE_DEFAULT_THEME
this.USE_DEFAULT_REACTION = USE_DEFAULT_REACTION
this.USE_DEFAULT_BGIMAGE = USE_DEFAULT_BGIMAGE
this.changeTheme(this.themeChoice)
this.applyBorder()
if (this.$q.dark.isActive) {