Skip to content

Commit

Permalink
🐛 Fix: support toc auto heightlight for hexo v6 (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
EsunR committed Jul 8, 2022
1 parent d51ac1e commit 98455c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/js/scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ $(function () {
// encodeURI the toc-item href
var hexoVersion = GLOBAL_CONFIG.hexoVersion[0]

if (hexoVersion === '5') {
if (parseInt(hexoVersion) >= 5) {
currentId = encodeURI(currentId)
}

Expand Down

0 comments on commit 98455c6

Please sign in to comment.