minor fix

This commit is contained in:
NightFox 2024-02-14 20:36:01 +03:00
parent b6c8cca76a
commit e0c7229c89

View File

@ -132,7 +132,7 @@ function makeTable(fields, data, attrs_func) {
table.appendChild(Tag('tr', attrs, null, (() => { table.appendChild(Tag('tr', attrs, null, (() => {
let ret = []; let ret = [];
for (const f of fields) { for (const f of fields) {
let value = d[f.field]; const value = d[f.field];
if (value === undefined) { if (value === undefined) {
ret.push(Tag('td')); ret.push(Tag('td'));
continue; continue;
@ -334,7 +334,7 @@ window.onload = () => {
Tag("div", null, null, [ Tag("div", null, null, [
Tag("b", null, null, [ Tag("b", null, null, [
Tag("span", {"class": "emoji"}, "🤼"), Tag("span", {"class": "emoji"}, "🤼"),
Text(" Image compare mode") Text(" Image compare mode")
]), ]),
Tag("label", null, null, [ Tag("label", null, null, [
Tag("input", {"type": "radio", "name": "compare_mode", "value": "switch", "checked": "checked"}), Tag("input", {"type": "radio", "name": "compare_mode", "value": "switch", "checked": "checked"}),