Fixed jukebox to match style

This commit is contained in:
Ben Arc
2021-06-30 13:38:10 +01:00
parent eac125a28e
commit 55c564fe21
5 changed files with 29 additions and 29 deletions
+8 -6
View File
@@ -307,14 +307,13 @@ window.windowMixin = {
extensions: [],
user: null,
wallet: null,
payments: [],
payments: []
}
}
},
methods: {
changeColor: function(newValue) {
changeColor: function (newValue) {
document.body.setAttribute('data-theme', newValue)
console.log(document.body.getAttribute('data-theme'))
console.log(newValue)
@@ -336,8 +335,11 @@ window.windowMixin = {
},
created: function () {
this.$q.dark.set(this.$q.localStorage.getItem('lnbits.darkMode'))
if (this.$q.localStorage.getItem('lnbits.theme')){
document.body.setAttribute('data-theme', this.$q.localStorage.getItem('lnbits.theme'))
if (this.$q.localStorage.getItem('lnbits.theme')) {
document.body.setAttribute(
'data-theme',
this.$q.localStorage.getItem('lnbits.theme')
)
}
if (window.user) {
this.g.user = Object.freeze(window.LNbits.map.user(window.user))