From 67d3875c98518489a423cad4ade4addf110d5696 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 5 Sep 2019 12:13:36 +0900 Subject: [PATCH] Fix error on this.fetchData --- BTCPayServer/Views/Invoice/Checkout.cshtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BTCPayServer/Views/Invoice/Checkout.cshtml b/BTCPayServer/Views/Invoice/Checkout.cshtml index cf154c09c..fb64e242e 100644 --- a/BTCPayServer/Views/Invoice/Checkout.cshtml +++ b/BTCPayServer/Views/Invoice/Checkout.cshtml @@ -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);