From f452b9c00d4be49f09f878d099684b080df87e1b Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 14 Sep 2020 15:46:23 -0300 Subject: [PATCH] withdraw: replace location.hostname with location.host. fixes https://github.com/lnbits/lnbits/issues/88 --- lnbits/extensions/withdraw/static/js/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lnbits/extensions/withdraw/static/js/index.js b/lnbits/extensions/withdraw/static/js/index.js index 8aa2f78af..7a7c1d75a 100644 --- a/lnbits/extensions/withdraw/static/js/index.js +++ b/lnbits/extensions/withdraw/static/js/index.js @@ -1,3 +1,5 @@ +/* global Vue, VueQrcode, _, Quasar, LOCALE, windowMixin, LNbits */ + Vue.component(VueQrcode.name, VueQrcode) var locationPath = [ @@ -116,7 +118,7 @@ new Vue({ this.qrCodeDialog.data = _.clone(link) console.log(this.qrCodeDialog.data) - this.qrCodeDialog.data.url = window.location.hostname + this.qrCodeDialog.data.url = window.location.host this.qrCodeDialog.show = true }, openUpdateDialog: function (linkId) { @@ -181,7 +183,7 @@ new Vue({ ) .then(function (response) { self.withdrawLinks = _.reject(self.withdrawLinks, function (obj) { - return obj.id == data.id + return obj.id === data.id }) self.withdrawLinks.push(mapWithdrawLink(response.data)) self.formDialog.show = false @@ -219,7 +221,7 @@ new Vue({ ) .then(function (response) { self.withdrawLinks = _.reject(self.withdrawLinks, function (obj) { - return obj.id == linkId + return obj.id === linkId }) }) .catch(function (error) {