diff --git a/BTCPayServer/wwwroot/checkout/js/core.js b/BTCPayServer/wwwroot/checkout/js/core.js index da93e11ab..1efeca863 100644 --- a/BTCPayServer/wwwroot/checkout/js/core.js +++ b/BTCPayServer/wwwroot/checkout/js/core.js @@ -248,6 +248,9 @@ $(document).ready(function () { socket.onmessage = function (e) { fetchStatus(); }; + socket.onerror = function (e) { + console.error("Error while connecting to websocket for invoice notifications (callback)"); + }; } catch (e) { console.error("Error while connecting to websocket for invoice notifications");