diff options
author | Marvin Borner | 2024-08-01 12:41:48 +0200 |
---|---|---|
committer | Marvin Borner | 2024-08-01 12:41:48 +0200 |
commit | 2e63dee421a90e9b2fca4cce9c21817c3417ab44 (patch) | |
tree | d40d581861b9eb37d38f6be9cad185d0a77d08df | |
parent | c3c381a09f205051ab407beacc86ec75b3207b27 (diff) |
Minor improvements
-rw-r--r-- | docs/code.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/docs/code.js b/docs/code.js index 872ed62..6093a9e 100644 --- a/docs/code.js +++ b/docs/code.js @@ -426,7 +426,6 @@ const bruijnApply = (root) => { if (res) { // densely connected listeners - // TODO: do not open multiple tabs when not sure (thrush prefix/mixfix) node.elem.addEventListener( "click", (ev) => { @@ -462,7 +461,6 @@ const bruijnApply = (root) => { }); if (["definition", "import"].includes(res.kind)) { node.elem.title = `Jump to ${res.kind} source`; - res.elem.title = "definition"; } } else if (node.kind === "identifier") { // TODO: also include prefix/mixfix once better @@ -494,7 +492,7 @@ const becomeIntelligent = () => { "code.language-bruijn span.definition", ); definitions.forEach((definition) => { - if (definition.innerText === hash.slice(1)) + if (definition.innerText === decodeURI(hash).slice(1)) bruijnScroll(definition)(); }); } |