From e146686b070db37d397770a614fa032e92c05688 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Mon, 28 Apr 2025 22:07:53 +0100 Subject: [PATCH] qrcode: allow custom app name (for multiple QR codes) --- apps/qrcode/custom.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/qrcode/custom.html b/apps/qrcode/custom.html index a51190153..2ff1cd9db 100644 --- a/apps/qrcode/custom.html +++ b/apps/qrcode/custom.html @@ -101,6 +101,8 @@ + + @@ -365,8 +367,10 @@ g.drawString(content,g.getWidth()/2,g.getHeight()-(g.getHeight()-img[1])/4); `} g.setColor(1,1,1); `; + + var appname = document.getElementById("appname").value.trim() || "qrcode"; sendCustomizedApp({ - storage:[{name:"qrcode.app.js", url:"app.js", content:app}] + storage:[{name:`${appname}.app.js`, url:"app.js", content:app}] }); });