mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
Fix error on this.fetchData
This commit is contained in:
parent
77d0f3d85c
commit
67d3875c98
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue