There was an error while loading. Please reload this page.
1 parent 277c0a3 commit 5361f56Copy full SHA for 5361f56
index.html
@@ -344,6 +344,8 @@
344
}
345
})();
346
347
+const getRadio = radios => Array.from(radios).find(r => r.checked).value;
348
+
349
gen_btn.addEventListener("click", () => {
350
if (lock.init()) return;
351
const zip = new JSZip();
@@ -355,7 +357,7 @@
355
357
const formatstring = form.elements.formatstring.value;
356
358
const gridsize = form.elements.gridsize.value;
359
const glyph_sizes_bin = form.elements.glyph_sizes_bin.value;
-const metamode = form.elements.metamode.value;
360
+const metamode = form.elements.metamode.value ? getRadio(form.elements.metamode);
361
const pack_format = parseInt(form.elements.pack_format.value);
362
const description_format = form.elements.description_format.value;
363
preview_canvas.width = gridsize * 16;
0 commit comments