fix: CJK characters in TOC scroll indicator

This commit is contained in:
Sakari 2024-04-29 15:28:34 +08:00
parent 7d634c9ac9
commit 49e83b148c
No known key found for this signature in database
GPG key ID: 303D3A2ABD7FEEA4

View file

@ -33,7 +33,7 @@
h.each(function (i, e) {
e = $(e);
if (e.offset().top - $(window).height()/3 <= currentScroll) {
id = e.attr('id');
id = decodeURIComponent(e.attr('id'));
}
});
var active = $toc.find('a.active');