We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bdd9c9 commit 09d5ce6Copy full SHA for 09d5ce6
src/js/01-nav.js
@@ -58,7 +58,7 @@
58
while ((current = current.parentNode) && current !== ceiling) {
59
var id = current.id
60
// NOTE: look for section heading
61
- if (!id && (id = current.className.match(SECT_CLASS_RX))) id = (current.firstElementChild || {}).id
+ if (!id && (id = SECT_CLASS_RX.test(current.className))) id = (current.firstElementChild || {}).id
62
if (id && (navLink = menuPanel.querySelector('.nav-link[href="#' + id + '"]'))) break
63
}
64
0 commit comments