From 246d2b589c1d055185c0fa2dda40f1022a21a672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Mon, 4 Nov 2024 13:35:35 +0100 Subject: [PATCH] fix: websocket url --- static/js/index.js | 4 ++- templates/bitcoinswitch/index.html | 46 +++++++++--------------------- 2 files changed, 16 insertions(+), 34 deletions(-) diff --git a/static/js/index.js b/static/js/index.js index a7d97c0..bd9e7dc 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -220,6 +220,8 @@ window.app = Vue.createApp({ const bitcoinswitch = _.findWhere(this.bitcoinswitches, { id: bitcoinswitchId }) + this.wslocation = + 'wss://' + window.location.host + '/api/v1/ws/' + bitcoinswitchId this.settingsDialog.data = _.clone(bitcoinswitch) this.settingsDialog.show = true }, @@ -261,7 +263,7 @@ window.app = Vue.createApp({ this.location = [window.location.protocol, '//', window.location.host].join( '' ) - this.wslocation = ['ws://', window.location.host].join('') + this.wslocation = ['wss://', window.location.host].join('') LNbits.api .request('GET', '/api/v1/currencies') .then(response => { diff --git a/templates/bitcoinswitch/index.html b/templates/bitcoinswitch/index.html index 9757562..6928dc9 100644 --- a/templates/bitcoinswitch/index.html +++ b/templates/bitcoinswitch/index.html @@ -171,39 +171,19 @@
deviceition="top" @hide="closeFormDialog" > - -
LNURLDevice device string
-
- - - Click to copy URL - - - - Click to copy URL - -
+ +
Device string
+ + + Click to copy URL +