Remove query selector

This commit is contained in:
Eduardo Gomez 2020-04-28 00:14:10 +02:00
parent 1c6877f033
commit 8564e64311
2 changed files with 3 additions and 5 deletions

File diff suppressed because one or more lines are too long

View file

@ -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