mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-08 08:34:25 +01:00
checkout fixes (#997)
This commit is contained in:
committed by
Nicolas Dorier
parent
d9a0db3efc
commit
efdb131c33
@@ -265,6 +265,7 @@
|
||||
}
|
||||
},
|
||||
listenIn: function(){
|
||||
var self = this;
|
||||
var socket = null;
|
||||
var supportsWebSockets = 'WebSocket' in window && window.WebSocket.CLOSING === 2;
|
||||
if (supportsWebSockets) {
|
||||
@@ -279,7 +280,7 @@
|
||||
try {
|
||||
socket = new WebSocket(ws_uri);
|
||||
socket.onmessage = function (e) {
|
||||
this.fetchData();
|
||||
self.fetchData();
|
||||
};
|
||||
socket.onerror = function (e) {
|
||||
console.error("Error while connecting to websocket for invoice notifications (callback)");
|
||||
|
||||
Reference in New Issue
Block a user