chore(vue): use g for consistency with Flask

This commit is contained in:
Eneko Illarramendi
2020-04-03 22:38:50 +02:00
parent d0b44eada9
commit a81de95f73
5 changed files with 18 additions and 18 deletions
+5 -5
View File
@@ -141,7 +141,7 @@ var LNbits = {
var windowMixin = {
data: function () {
return {
w: {
g: {
visibleDrawer: false,
extensions: [],
user: null,
@@ -165,14 +165,14 @@ var windowMixin = {
created: function () {
this.$q.dark.set(this.$q.localStorage.getItem('lnbits.darkMode'));
if (window.user) {
this.w.user = Object.freeze(LNbits.map.user(window.user));
this.g.user = Object.freeze(LNbits.map.user(window.user));
}
if (window.wallet) {
this.w.wallet = Object.freeze(LNbits.map.wallet(window.wallet));
this.g.wallet = Object.freeze(LNbits.map.wallet(window.wallet));
}
if (window.extensions) {
var user = this.w.user;
this.w.extensions = Object.freeze(window.extensions.map(function (data) {
var user = this.g.user;
this.g.extensions = Object.freeze(window.extensions.map(function (data) {
return LNbits.map.extension(data);
}).map(function (obj) {
if (user) {