Remove query selector
This commit is contained in:
parent
1c6877f033
commit
8564e64311
File diff suppressed because one or more lines are too long
|
@ -252,10 +252,8 @@ $(document).ready(() => {
|
|||
}
|
||||
}
|
||||
|
||||
const headerElement = document.querySelector('.js-header')
|
||||
|
||||
if (headerElement) {
|
||||
const headroom = new Headroom(headerElement, {
|
||||
if ($header.length > 0) {
|
||||
const headroom = new Headroom($header[0], {
|
||||
tolerance: {
|
||||
down: 10,
|
||||
up: 20
|
||||
|
|
Loading…
Reference in a new issue