From 93610e232b366c6f6cb9695d4755fa578dc28aa0 Mon Sep 17 00:00:00 2001
From: Adam Brangenberg <adambrangenberg@proton.me>
Date: Wed, 01 Feb 2023 20:34:18 +0000
Subject: [PATCH] feat: Remove leading slash of folders in graph view (#282)
---
assets/js/popover.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/assets/js/popover.js b/assets/js/popover.js
index 29104b9..554291a 100644
--- a/assets/js/popover.js
+++ b/assets/js/popover.js
@@ -5,14 +5,14 @@
return template.content.firstChild
}
-function initPopover(baseURL, useContextualBacklinks, renderLatex) {
+function initPopover(baseURL, useContextualBacklinks) {
const basePath = baseURL.replace(window.location.origin, "")
fetchData.then(({ content }) => {
const links = [...document.getElementsByClassName("internal-link")]
links
.filter(li => li.dataset.src || (li.dataset.idx && useContextualBacklinks))
.forEach(li => {
- var el
+ let el
if (li.dataset.ctx) {
const linkDest = content[li.dataset.src]
const popoverElement = `<div class="popover">
@@ -42,7 +42,7 @@
if (el) {
li.appendChild(el)
- if (renderLatex) {
+ if (LATEX_ENABLED) {
renderMathInElement(el, {
delimiters: [
{ left: '$$', right: '$$', display: false },
--
Gitblit v1.10.0