From 63a975267c4c4caab9abfb4e8b9abef43346cb39 Mon Sep 17 00:00:00 2001 From: Kukks Date: Sat, 9 Mar 2019 14:09:31 +0100 Subject: [PATCH] Fix coinswitch issue Coinswitch did a breaking change, this fixes it. Closes #660 --- BTCPayServer/wwwroot/checkout/coinswitch.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BTCPayServer/wwwroot/checkout/coinswitch.html b/BTCPayServer/wwwroot/checkout/coinswitch.html index 06314ecd4..899405a48 100644 --- a/BTCPayServer/wwwroot/checkout/coinswitch.html +++ b/BTCPayServer/wwwroot/checkout/coinswitch.html @@ -46,7 +46,9 @@ setTimeout(waitForCoinSwitch, 1000); return; } - payment.open(config); + payment.on("Exchange:Ready", function(){ + payment.open(config); + }); payment.on("Exchange:Complete", function () { if(window.localStorage){ window.localStorage.removeItem(toCurrencyAddress);