Fix #114: theme grid empty (t.colors undefined) #115
@@ -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 () {
|
||||||
|
|||||||
Reference in New Issue
Block a user