Browse Source

withdraw: replace location.hostname with location.host.

fixes https://github.com/lnbits/lnbits/issues/88
aiosqlite
fiatjaf 5 years ago
parent
commit
f452b9c00d
  1. 8
      lnbits/extensions/withdraw/static/js/index.js

8
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) {

Loading…
Cancel
Save