This commit is contained in:
Aiden Bai 2022-05-03 10:07:38 -07:00
commit 771ebd8031
No known key found for this signature in database
GPG Key ID: D37584388675FF3A
1 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
async function drawGraph(
url,
baseUrl,
pathColors,
depth,
@ -10,7 +9,7 @@ async function drawGraph(
const container = document.getElementById('graph-container')
const { index, links, content } = await fetchData
const curPage = url.replace(baseUrl, '')
const curPage = window.location.href.replace(baseUrl, "").replace(/\/$/g, "")
const parseIdsFromLinks = (links) => [
...new Set(links.flatMap((link) => [link.source, link.target])),