Fix #114: theme grid empty (t.colors undefined) #115

Merged
fen merged 1 commits from fix-114-theme-grid-empty into dev 2026-09-10 02:01:38 +00:00
+1 -1
View File
@@ -44,7 +44,7 @@
btn.className = 'theme-card';
btn.setAttribute('aria-pressed', current === t.id ? 'true' : 'false');
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>';
}).join('') + '</span>';
btn.addEventListener('click', function () {