Skip to content

Commit 5361f56

Browse files
committed
fix radios value(EDGE)
1 parent 277c0a3 commit 5361f56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@
344344
}
345345
})();
346346

347+
const getRadio = radios => Array.from(radios).find(r => r.checked).value;
348+
347349
gen_btn.addEventListener("click", () => {
348350
if (lock.init()) return;
349351
const zip = new JSZip();
@@ -355,7 +357,7 @@
355357
const formatstring = form.elements.formatstring.value;
356358
const gridsize = form.elements.gridsize.value;
357359
const glyph_sizes_bin = form.elements.glyph_sizes_bin.value;
358-
const metamode = form.elements.metamode.value;
360+
const metamode = form.elements.metamode.value ? getRadio(form.elements.metamode);
359361
const pack_format = parseInt(form.elements.pack_format.value);
360362
const description_format = form.elements.description_format.value;
361363
preview_canvas.width = gridsize * 16;

0 commit comments

Comments
 (0)