diff --git a/lnbits/extensions/cashu/templates/cashu/_api_docs.html b/lnbits/extensions/cashu/templates/cashu/_api_docs.html
index 27ce55f98..f7bb19f60 100644
--- a/lnbits/extensions/cashu/templates/cashu/_api_docs.html
+++ b/lnbits/extensions/cashu/templates/cashu/_api_docs.html
@@ -5,7 +5,7 @@
:content-inset-level="0.5"
>
Cashu mint
+ Open wallet -Read the following text carefully!
++ This is a + Cashu + mint. Cashu is a Ecash system on Bitcoin. +
+
+ Add to home screen.
+ You can add Cashu to your home screen as a progressive web app
+ (PWA). When you open the wallet in your browser, on Android Chrome,
+ click the menu at the upper right. On iOS Safari, click the share
+ button. Now press the Add to Home screen button.
+
+ Backup your wallet!
+ Ecash is a bearer asset, meaning losing access to your wallet will
+ mean you will lose the funds. The wallet stores ecash tokens on your
+ device's database. If you lose the link or delete your your data
+ without backing up, you will lose your tokens. Press the Backup
+ button in the wallet to download a copy of your tokens.
+
This service is in BETA! We hold no responsibility for people losing diff --git a/lnbits/extensions/cashu/views.py b/lnbits/extensions/cashu/views.py index 26b1f8708..954936b93 100644 --- a/lnbits/extensions/cashu/views.py +++ b/lnbits/extensions/cashu/views.py @@ -43,7 +43,8 @@ async def wallet(request: Request, mint_id: str): async def cashu(request: Request, mintID): cashu = await get_cashu(mintID) return cashu_renderer().TemplateResponse( - "cashu/mint.html", {"request": request, "mint_name": cashu.name} + "cashu/mint.html", + {"request": request, "mint_name": cashu.name, "mint_id": mintID}, ) @@ -57,7 +58,7 @@ async def manifest(cashu_id: str): return { "short_name": "Cashu", - "name": cashu.name + " - " + "Cashu", + "name": "Cashu" + " - " + cashu.name, "icons": [ { "src": "https://github.com/cashubtc/cashu-ui/raw/main/ui/icons/512x512.png", @@ -78,9 +79,9 @@ async def manifest(cashu_id: str): "theme_color": "#1F2234", "shortcuts": [ { - "name": cashu.name + " - " + "Cashu", - "short_name": cashu.name, - "description": cashu.name + " - " + "Cashu", + "name": "Cashu" + " - " + cashu.name, + "short_name": "Cashu", + "description": "Cashu" + " - " + cashu.name, "url": "/cashu/wallet?mint_id=" + cashu_id, "icons": [ {