mirror of https://github.com/onweru/compose.git

rakshazi
03.18.2021 f1dec6ff07f73751514695b61014bfa39b94a840
Fix customizeSidebar() error on non-english ids
1 files modified
2 ■■■ changed files
assets/js/index.js 2 ●●● patch | view | raw | blame | history
assets/js/index.js
@@ -105,7 +105,7 @@
        });
        const linkPositions = pageIds.map(function(id){
          const heading = document.getElementById(id.replace('#',''));
          const heading = document.getElementById(decodeURIComponent(id.replace('#','')));
          const position = heading.offsetTop;
          return position;
        });