Improves payment reactions (#2251)
* updated to select * updating * working * bundle * updated to select * updating * working * bundle * Make room for everything apart from sending * Update lnbits/static/js/base.js Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com> * prettier * bundled * fundle * changed to window[] * vlads suggestion * added stars * vlads suggestion * fundle --------- Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
This commit is contained in:
@@ -168,7 +168,6 @@ window.LNbits = {
|
||||
let listener = ev => {
|
||||
cb(JSON.parse(ev.data))
|
||||
}
|
||||
|
||||
this.listenersCount = this.listenersCount || {[wallet.inkey]: 0}
|
||||
this.listenersCount[wallet.inkey]++
|
||||
|
||||
@@ -444,7 +443,7 @@ window.windowMixin = {
|
||||
data: function () {
|
||||
return {
|
||||
toggleSubs: true,
|
||||
reactionToggle: true,
|
||||
reactionChoice: 'confettiBothSides',
|
||||
isUserAuthorized: false,
|
||||
g: {
|
||||
offline: !navigator.onLine,
|
||||
@@ -524,12 +523,8 @@ window.windowMixin = {
|
||||
} else {
|
||||
this.$q.dark.set(true)
|
||||
}
|
||||
let reactions = this.$q.localStorage.getItem('lnbits.reactions')
|
||||
if (reactions == null) {
|
||||
this.$q.localStorage.set('lnbits.reactions', true)
|
||||
reactions = true
|
||||
}
|
||||
this.reactionToggle = reactions
|
||||
this.reactionChoice =
|
||||
this.$q.localStorage.getItem('lnbits.reactions') || 'confettiBothSides'
|
||||
|
||||
this.g.allowedThemes = window.allowedThemes ?? ['bitcoin']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user