aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/resources/html/js-src/init.ts
diff options
context:
space:
mode:
authorMarcin Szamotulski <profunctor@pm.me>2021-08-08 17:19:06 +0200
committerGitHub <noreply@github.com>2021-08-08 17:19:06 +0200
commit5bd9262466a0e71da4e84654a1906b76996e3692 (patch)
treef8b6c000381a10b540cb27d7c9089158075a25db /haddock-api/resources/html/js-src/init.ts
parentbe7ea34f16391d5e61326b117ecddeea2165fb86 (diff)
coot/multiple packages (ghc-9.2) (#1418)
Diffstat (limited to 'haddock-api/resources/html/js-src/init.ts')
-rw-r--r--haddock-api/resources/html/js-src/init.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/haddock-api/resources/html/js-src/init.ts b/haddock-api/resources/html/js-src/init.ts
index 1bfa8b3c..4a58b867 100644
--- a/haddock-api/resources/html/js-src/init.ts
+++ b/haddock-api/resources/html/js-src/init.ts
@@ -17,6 +17,11 @@ function onDomReady(callback: () => void) {
onDomReady(() => {
document.body.classList.add('js-enabled');
styleMenu.init();
- quickJump.init();
detailsHelper.init();
+ let head = document.getElementById('head');
+ let baseURL = ".";
+ if (head !== null) {
+ baseURL = head.getAttribute('data-base-url') || '.';
+ }
+ quickJump.init(baseURL);
});