Try delivering json directly
This commit is contained in:
parent
a8cc8241e6
commit
8ace4d4c96
2 changed files with 3 additions and 9 deletions
|
|
@ -71,12 +71,4 @@ async def lnurl_callback(cp_id):
|
||||||
extra={"tag": "copilot", "comment": comment},
|
extra={"tag": "copilot", "comment": comment},
|
||||||
)
|
)
|
||||||
|
|
||||||
resp = LnurlPayActionResponse(
|
return jsonify({"pr": payment_request, "success_action": None, "routes": [], "disposable": []})
|
||||||
pr=payment_request,
|
|
||||||
success_action=None,
|
|
||||||
routes=[],
|
|
||||||
)
|
|
||||||
print(payment_request)
|
|
||||||
print(resp)
|
|
||||||
|
|
||||||
return jsonify(resp.dict())
|
|
||||||
|
|
@ -197,10 +197,12 @@
|
||||||
}
|
}
|
||||||
if (res[1] == 'confetti') {
|
if (res[1] == 'confetti') {
|
||||||
document.getElementById('animations').style.width = '100%'
|
document.getElementById('animations').style.width = '100%'
|
||||||
|
document.getElementById('animations').style.height = '100%'
|
||||||
document.getElementById('animations').src =
|
document.getElementById('animations').src =
|
||||||
'/copilot/static/confetti.gif'
|
'/copilot/static/confetti.gif'
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
document.getElementById('animations').src = ''
|
document.getElementById('animations').src = ''
|
||||||
|
document.getElementById('animations').style.height = ''
|
||||||
}, 5000)
|
}, 5000)
|
||||||
}
|
}
|
||||||
if (res[1] == 'martijn') {
|
if (res[1] == 'martijn') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue