Use const instead of var and remove useless console.log
This commit is contained in:
parent
a8c8729245
commit
1c6877f033
File diff suppressed because one or more lines are too long
|
@ -252,10 +252,10 @@ $(document).ready(() => {
|
|||
}
|
||||
}
|
||||
|
||||
var headerElement = document.querySelector('.js-header')
|
||||
const headerElement = document.querySelector('.js-header')
|
||||
|
||||
if (headerElement) {
|
||||
var headroom = new Headroom(headerElement, {
|
||||
const headroom = new Headroom(headerElement, {
|
||||
tolerance: {
|
||||
down: 10,
|
||||
up: 20
|
||||
|
@ -263,7 +263,6 @@ $(document).ready(() => {
|
|||
offset: 15,
|
||||
onUnpin: () => {
|
||||
if (!isMobile() && secondaryMenuTippy) {
|
||||
console.log(secondaryMenuTippy)
|
||||
const desktopSecondaryMenuTippy = secondaryMenuTippy[0]
|
||||
|
||||
if (
|
||||
|
|
Loading…
Reference in a new issue