« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/content/dependencies/generateAlbumSidebarTrackSection.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/content/dependencies/generateAlbumSidebarTrackSection.js b/src/content/dependencies/generateAlbumSidebarTrackSection.js
index 4f470698..aa5c723d 100644
--- a/src/content/dependencies/generateAlbumSidebarTrackSection.js
+++ b/src/content/dependencies/generateAlbumSidebarTrackSection.js
@@ -61,10 +61,10 @@ export default {
           ? language.$('albumSidebar.trackList.fallbackSectionName')
           : data.name));
 
-    let style;
+    let colorStyle;
     if (data.color) {
       const {primary} = getColors(data.color);
-      style = `--primary-color: ${primary}`;
+      colorStyle = {style: `--primary-color: ${primary}`};
     }
 
     const trackListItems =
@@ -113,7 +113,9 @@ export default {
         {open: true},
 
       [
-        html.tag('summary', {style},
+        html.tag('summary',
+          colorStyle,
+
           html.tag('span',
             (data.hasTrackNumbers
               ? language.$('albumSidebar.trackList.group.withRange', {