« get me outta code hell

divide things.js into modular files (hilariously) - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/misc-templates.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-11-28 23:25:05 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-11-28 23:25:05 -0400
commit690a7b53a72ac71f9f76260fa50c634566c4e984 (patch)
tree841653cf0e474c6edd437ec36884f2130b5b7b43 /src/misc-templates.js
parentae9dba60c4bbb327b402c500cc042922a954de74 (diff)
divide things.js into modular files (hilariously)
Diffstat (limited to 'src/misc-templates.js')
-rw-r--r--src/misc-templates.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js
index 0a33648..83aae19 100644
--- a/src/misc-templates.js
+++ b/src/misc-templates.js
@@ -2,7 +2,7 @@
 // These are made available right on a page spec's ({wikiData, language, ...})
 // args object!
 
-import {Track, Album} from './data/things.js';
+import T from './data/things/index.js';
 
 import {
   empty,
@@ -173,7 +173,7 @@ function unbound_generateChronologyLinks(currentThing, {
       // right function to use here.
       const args = [thingsUnsorted, {getDate: (t) => t[dateKey]}];
       const things = (
-        thingsUnsorted.every(t => t instanceof Album || t instanceof Track)
+        thingsUnsorted.every(t => t instanceof T.Album || t instanceof T.Track)
           ? sortAlbumsTracksChronologically(...args)
           : sortChronologically(...args));