Aiden Bai
2022-05-03 8d092a3a4aca9561f3ac852e01518f48c8ef68fe
assets/js/graph.js
@@ -1,5 +1,4 @@
async function drawGraph(
  url,
  baseUrl,
  pathColors,
  depth,
@@ -10,7 +9,7 @@
  const container = document.getElementById('graph-container')
  const { index, links, content } = await fetchData
  const curPage = url.replace(baseUrl, '')
  const curPage = window.location.href.replace(baseUrl, '').slice(0, -1)
  const parseIdsFromLinks = (links) => [
    ...new Set(links.flatMap((link) => [link.source, link.target])),