fix chrome

This commit is contained in:
callebtc 2022-11-05 17:50:35 +01:00 committed by dni ⚡
parent 5a45ca5cb4
commit ee6801de80
2 changed files with 11 additions and 7 deletions

View File

@ -1,9 +1,6 @@
<head> {% extends "public.html" %} {% block toolbar_title %} {% raw %} {{name}} Cashu {% endraw %} {% endblock %}
<link rel="shortcut icon" href="https://github.com/cashubtc/cashu-ui/raw/main/ui/icons/180x180.png"> {% block footer %}{% endblock %}
<link rel="apple-touch-icon" href="https://github.com/cashubtc/cashu-ui/raw/main/ui/icons/180x180.png"> {% block page_container %}
</head>
{% extends "public.html" %} {% block toolbar_title %} {% raw %} {{name}} Cashu {% endraw %} {% endblock %} {% block footer %}{% endblock %} {% block
page_container %}
<q-page-container> <q-page-container>
<q-page> <q-page>
<div class="row q-col-gutter-md justify-center q-pt-lg"> <div class="row q-col-gutter-md justify-center q-pt-lg">
@ -1321,6 +1318,7 @@ page_container %}
return proofs.reduce((s, t) => (s += t.amount), 0) return proofs.reduce((s, t) => (s += t.amount), 0)
}, },
splitToSend: async function (proofs, amount, invlalidate = false) { splitToSend: async function (proofs, amount, invlalidate = false) {
// splits proofs so the user can keep firstProofs, send scndProofs
try { try {
const spendableProofs = proofs.filter(p => !p.reserved) const spendableProofs = proofs.filter(p => !p.reserved)
if (this.sumProofs(spendableProofs) < amount) { if (this.sumProofs(spendableProofs) < amount) {
@ -1330,7 +1328,6 @@ page_container %}
spendableProofs, spendableProofs,
amount amount
) )
// keep firstProofs, send scndProofs
// set scndProofs in this.proofs as reserved // set scndProofs in this.proofs as reserved
const usedSecrets = proofs.map(p => p.secret) const usedSecrets = proofs.map(p => p.secret)

View File

@ -86,10 +86,17 @@ async def manifest(cashu_id: str):
{ {
"src": "https://github.com/cashubtc/cashu-ui/raw/main/ui/icons/96x96.png", "src": "https://github.com/cashubtc/cashu-ui/raw/main/ui/icons/96x96.png",
"sizes": "96x96", "sizes": "96x96",
"type": "image/png",
},
{
"src": "https://github.com/cashubtc/cashu-ui/raw/main/ui/icons/180x180.png",
"sizes": "180x180",
"type": "image/png",
}, },
{ {
"src": "https://github.com/cashubtc/cashu-ui/raw/main/ui/icons/512x512.png", "src": "https://github.com/cashubtc/cashu-ui/raw/main/ui/icons/512x512.png",
"sizes": "512x512", "sizes": "512x512",
"type": "image/png",
}, },
], ],
} }