Initializing modal apiPrefix url, needed for bundling

This commit is contained in:
rockstardev 2020-09-14 00:49:28 -05:00 committed by Kukks
parent 858d56d20c
commit a93e3be197

View file

@ -16,6 +16,7 @@ var BtcPayServerModal = (function () {
else {
waitForPayment.lock = true;
}
window.btcpay.setApiUrlPrefix(btcpayServerUrl);
window.btcpay.onModalWillEnter(function () {
var interval = setInterval(function () {
getBtcPayInvoice(btcPayServerUrl, invoiceId, storeId)