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 ($header.length > 0) {
|
||||||
|
const headroom = new Headroom($header[0], {
|
||||||
if (headerElement) {
|
|
||||||
const headroom = new Headroom(headerElement, {
|
|
||||||
tolerance: {
|
tolerance: {
|
||||||
down: 10,
|
down: 10,
|
||||||
up: 20
|
up: 20
|
||||||
|
|
Loading…
Reference in a new issue