We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2401063 commit e146686Copy full SHA for e146686
apps/qrcode/custom.html
@@ -101,6 +101,8 @@
101
<option value="2">H - High - 30%</option>
102
</select>
103
</div>
104
+ <label for="appname">App name</label>
105
+ <input type="text" id="appname" class="form-input" value="qrcode">
106
<button id="upload" class="btn btn-primary">Upload</button>
107
108
<script src="../../core/lib/customize.js"></script>
@@ -365,8 +367,10 @@
365
367
`}
366
368
g.setColor(1,1,1);
369
`;
370
+
371
+ var appname = document.getElementById("appname").value.trim() || "qrcode";
372
sendCustomizedApp({
- storage:[{name:"qrcode.app.js", url:"app.js", content:app}]
373
+ storage:[{name:`${appname}.app.js`, url:"app.js", content:app}]
374
});
375
376
0 commit comments