« get me outta code hell

data: WikiInfo.enableSearch, WikiInfo.searchDataAvailable - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/upd8.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-05-01 21:26:37 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-31 12:11:47 -0300
commitce56dec7da53739f8c02e6ddf6a8e1ebe4b245b2 (patch)
treec6695dd99f5d12f09e1b3b18b21280fc0811f942 /src/upd8.js
parent5bff100c3864c244482c1b690e4cef090076d3ab (diff)
data: WikiInfo.enableSearch, WikiInfo.searchDataAvailable
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 258abd95..74f38ece 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -2215,6 +2215,10 @@ async function main() {
     });
   }
 
+  wikiData.wikiInfo.searchDataAvailable =
+    webRouteSources
+      .some(({to}) => to[0].startsWith('searchData'));
+
   if (stepStatusSummary.performBuild.status === STATUS_NOT_APPLICABLE) {
     return true;
   }