Skip to content

Commit 09ae6f9

Browse files
Use more specific querySelector
Co-authored-by: Stefano Ottolenghi <stefano.ottolenghi@neo4j.com>
1 parent 0b0824a commit 09ae6f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/01-nav.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133

134134
function showNav (e) {
135135
if (navToggle.classList.contains('is-active')) return hideNav(e)
136-
var html = document.documentElement.querySelector('main') || document.documentElement.querySelector('article') || document.documentElement
136+
var html = document.documentElement.querySelector('main.article')
137137
html.classList.add('is-clipped--nav')
138138
navToggle.classList.add('is-active')
139139
navContainer.classList.add('is-active')

0 commit comments

Comments
 (0)