Fix error on this.fetchData

This commit is contained in:
nicolas.dorier 2019-09-05 12:13:36 +09:00
parent 77d0f3d85c
commit 67d3875c98
No known key found for this signature in database
GPG key ID: 6618763EF09186FE

View file

@ -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);