From 45ccbd5cd2c76341a002268217c36d593d393e3f Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Sun, 06 Dec 2020 17:09:07 +0000
Subject: [PATCH] update helpers

---
 assets/js/index.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/assets/js/index.js b/assets/js/index.js
index a5b1bba..c5f5842 100644
--- a/assets/js/index.js
+++ b/assets/js/index.js
@@ -105,7 +105,7 @@
         });
 
         const linkPositions = pageIds.map(function(id){
-          const heading = elem(id);
+          const heading = document.getElementById(id.replace('#',''));
           const position = heading.offsetTop;
           return position;
         });

--
Gitblit v1.10.0