Merge pull request 'Fix #114: theme grid empty (t.colors undefined)' (#115) from fix-114-theme-grid-empty into dev
CI / test (push) Successful in 21s
CI / docker (push) Successful in 42s

This commit was merged in pull request #115.
This commit is contained in:
fen
2026-09-10 02:01:38 +00:00
+1 -1
View File
@@ -44,7 +44,7 @@
btn.className = 'theme-card'; btn.className = 'theme-card';
btn.setAttribute('aria-pressed', current === t.id ? 'true' : 'false'); btn.setAttribute('aria-pressed', current === t.id ? 'true' : 'false');
btn.innerHTML = '<strong>' + t.name + '</strong>' + btn.innerHTML = '<strong>' + t.name + '</strong>' +
'<span class="swatches">' + t.colors.map(function (c) { '<span class="swatches">' + colors.map(function (c) {
return '<span class="swatch" style="background:' + c + '"></span>'; return '<span class="swatch" style="background:' + c + '"></span>';
}).join('') + '</span>'; }).join('') + '</span>';
btn.addEventListener('click', function () { btn.addEventListener('click', function () {