mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-26 01:14:20 +01:00
Fix error on this.fetchData
This commit is contained in:
@@ -290,11 +290,11 @@
|
||||
console.error("Error while connecting to websocket for invoice notifications");
|
||||
}
|
||||
}
|
||||
|
||||
var self = this;
|
||||
function watcher(){
|
||||
setTimeout(function(){
|
||||
if (socket === null || socket.readyState !== 1) {
|
||||
this.fetchData();
|
||||
self.fetchData();
|
||||
}
|
||||
watcher();
|
||||
}, 2000);
|
||||
|
||||
Reference in New Issue
Block a user