Merge pull request #241 from talvasconcelos/feature/readthemeenv
Read .env themeing colors
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user