Merge pull request #241 from talvasconcelos/feature/readthemeenv

Read .env themeing colors
This commit is contained in:
Arc
2021-07-01 00:08:34 +01:00
committed by GitHub
4 changed files with 18 additions and 2 deletions
+3 -1
View File
@@ -307,7 +307,8 @@ window.windowMixin = {
extensions: [],
user: null,
wallet: null,
payments: []
payments: [],
allowedThemes: null
}
}
},
@@ -333,6 +334,7 @@ window.windowMixin = {
},
created: function () {
this.$q.dark.set(this.$q.localStorage.getItem('lnbits.darkMode'))
this.g.allowedThemes = window.allowedThemes
if (this.$q.localStorage.getItem('lnbits.theme')) {
document.body.setAttribute(
'data-theme',