Handle selectable table dark mode more elegantly

This commit is contained in:
Alex Ling
2020-07-22 17:31:38 +00:00
parent 2773c1e67f
commit 70ea1711ce
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -278,8 +278,7 @@ const buildTable = () => {
const group_str = Object.entries(chp.groups).map(([k, v]) => {
return `<a href="${baseURL }/group/${v}">${k}</a>`;
}).join(' | ');
const dark = loadTheme() === 'dark' ? 'dark' : '';
return `<tr class="ui-widget-content ${dark}">
return `<tr class="ui-widget-content">
<td><a href="${baseURL}/chapter/${chp.id}">${chp.id}</a></td>
<td>${chp.title}</td>
<td>${chp.language}</td>