Merge branch 'main' into improved-pwa

This commit is contained in:
Lee Salminen
2022-07-05 15:10:57 -06:00
34 changed files with 489 additions and 305 deletions
+6 -5
View File
@@ -346,11 +346,12 @@ window.windowMixin = {
}
},
created: function () {
if(this.$q.localStorage.getItem('lnbits.darkMode') == true || this.$q.localStorage.getItem('lnbits.darkMode') == false){
if (
this.$q.localStorage.getItem('lnbits.darkMode') == true ||
this.$q.localStorage.getItem('lnbits.darkMode') == false
) {
this.$q.dark.set(this.$q.localStorage.getItem('lnbits.darkMode'))
}
else{
} else {
this.$q.dark.set(true)
}
this.g.allowedThemes = window.allowedThemes ?? ['bitcoin']
@@ -364,7 +365,7 @@ window.windowMixin = {
})
// failsafe if admin changes themes halfway
if (!this.$q.localStorage.getItem('lnbits.theme')){
if (!this.$q.localStorage.getItem('lnbits.theme')) {
this.changeColor(this.g.allowedThemes[0])
}
if (