From 5bd9262466a0e71da4e84654a1906b76996e3692 Mon Sep 17 00:00:00 2001 From: Marcin Szamotulski Date: Sun, 8 Aug 2021 17:19:06 +0200 Subject: coot/multiple packages (ghc-9.2) (#1418) --- haddock-api/resources/html/js-src/init.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'haddock-api/resources/html/js-src') 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); }); -- cgit v1.2.3