Try delivering json directly

This commit is contained in:
Ben Arc 2021-04-16 13:07:53 +01:00
parent a8cc8241e6
commit 8ace4d4c96
2 changed files with 3 additions and 9 deletions

View File

@ -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": []})

View File

@ -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') {