From 888ececc64262b11e3f6390a667e4fc2aa5c3358 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sat, 5 Nov 2022 17:50:35 +0100 Subject: [PATCH] fix chrome --- lnbits/extensions/cashu/templates/cashu/wallet.html | 11 ++++------- lnbits/extensions/cashu/views.py | 7 +++++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/lnbits/extensions/cashu/templates/cashu/wallet.html b/lnbits/extensions/cashu/templates/cashu/wallet.html index 68bf1a16e..0dc5bcf10 100644 --- a/lnbits/extensions/cashu/templates/cashu/wallet.html +++ b/lnbits/extensions/cashu/templates/cashu/wallet.html @@ -1,9 +1,6 @@ - - - - -{% extends "public.html" %} {% block toolbar_title %} {% raw %} {{name}} Cashu {% endraw %} {% endblock %} {% block footer %}{% endblock %} {% block -page_container %} +{% extends "public.html" %} {% block toolbar_title %} {% raw %} {{name}} Cashu {% endraw %} {% endblock %} +{% block footer %}{% endblock %} +{% block page_container %}
@@ -1321,6 +1318,7 @@ page_container %} return proofs.reduce((s, t) => (s += t.amount), 0) }, splitToSend: async function (proofs, amount, invlalidate = false) { + // splits proofs so the user can keep firstProofs, send scndProofs try { const spendableProofs = proofs.filter(p => !p.reserved) if (this.sumProofs(spendableProofs) < amount) { @@ -1330,7 +1328,6 @@ page_container %} spendableProofs, amount ) - // keep firstProofs, send scndProofs // set scndProofs in this.proofs as reserved const usedSecrets = proofs.map(p => p.secret) diff --git a/lnbits/extensions/cashu/views.py b/lnbits/extensions/cashu/views.py index ca05d83e3..f0a024383 100644 --- a/lnbits/extensions/cashu/views.py +++ b/lnbits/extensions/cashu/views.py @@ -86,10 +86,17 @@ async def manifest(cashu_id: str): { "src": "https://github.com/cashubtc/cashu-ui/raw/main/ui/icons/96x96.png", "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", "sizes": "512x512", + "type": "image/png", }, ], }