diff --git a/lnbits/extensions/copilot/lnurl.py b/lnbits/extensions/copilot/lnurl.py index 802a8d8b3..b294b80cf 100644 --- a/lnbits/extensions/copilot/lnurl.py +++ b/lnbits/extensions/copilot/lnurl.py @@ -71,12 +71,4 @@ async def lnurl_callback(cp_id): extra={"tag": "copilot", "comment": comment}, ) - resp = LnurlPayActionResponse( - pr=payment_request, - success_action=None, - routes=[], - ) - print(payment_request) - print(resp) - - return jsonify(resp.dict()) + return jsonify({"pr": payment_request, "success_action": None, "routes": [], "disposable": []}) \ No newline at end of file diff --git a/lnbits/extensions/copilot/templates/copilot/compose.html b/lnbits/extensions/copilot/templates/copilot/compose.html index f4963516e..2edc70ccd 100644 --- a/lnbits/extensions/copilot/templates/copilot/compose.html +++ b/lnbits/extensions/copilot/templates/copilot/compose.html @@ -197,10 +197,12 @@ } if (res[1] == 'confetti') { document.getElementById('animations').style.width = '100%' + document.getElementById('animations').style.height = '100%' document.getElementById('animations').src = '/copilot/static/confetti.gif' setTimeout(function () { document.getElementById('animations').src = '' + document.getElementById('animations').style.height = '' }, 5000) } if (res[1] == 'martijn') {