diff --git a/templates/myextension/index.html b/templates/myextension/index.html index 440836c..3e61cca 100644 --- a/templates/myextension/index.html +++ b/templates/myextension/index.html @@ -427,7 +427,7 @@ } frame() }, - connectWebocket(id) { + connectWebocket(wallet_id) { ////////////////////////////////////////////////// ///wait for pay action to happen and do a thing//// /////////////////////////////////////////////////// @@ -439,7 +439,7 @@ ':' + location.port + '/api/v1/ws/' + - id + wallet_id } else { localUrl = 'ws://' + @@ -447,7 +447,7 @@ ':' + location.port + '/api/v1/ws/' + - id + wallet_id } this.connection = new WebSocket(localUrl) this.connection.onmessage = function (e) { diff --git a/templates/myextension/myextension.html b/templates/myextension/myextension.html index 5595e5f..fd51eb1 100644 --- a/templates/myextension/myextension.html +++ b/templates/myextension/myextension.html @@ -24,10 +24,6 @@ lnurlpay -
- lnurlwithdraw - -
@@ -108,17 +104,13 @@ if (location.protocol !== 'http:') { localUrl = 'wss://' + - document.domain + - ':' + - location.port + + location.host + '/api/v1/ws/' + id } else { localUrl = 'ws://' + - document.domain + - ':' + - location.port + + location.host + '/api/v1/ws/' + id }