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) {
|
if (headerElement) {
|
||||||
var headroom = new Headroom(headerElement, {
|
const headroom = new Headroom(headerElement, {
|
||||||
tolerance: {
|
tolerance: {
|
||||||
down: 10,
|
down: 10,
|
||||||
up: 20
|
up: 20
|
||||||
|
@ -263,7 +263,6 @@ $(document).ready(() => {
|
||||||
offset: 15,
|
offset: 15,
|
||||||
onUnpin: () => {
|
onUnpin: () => {
|
||||||
if (!isMobile() && secondaryMenuTippy) {
|
if (!isMobile() && secondaryMenuTippy) {
|
||||||
console.log(secondaryMenuTippy)
|
|
||||||
const desktopSecondaryMenuTippy = secondaryMenuTippy[0]
|
const desktopSecondaryMenuTippy = secondaryMenuTippy[0]
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|
Loading…
Reference in a new issue