Try delivering json directly
This commit is contained in:
parent
a8cc8241e6
commit
8ace4d4c96
|
@ -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": []})
|
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue
Block a user