Use const instead of var and remove useless console.log

This commit is contained in:
Eduardo Gomez 2020-04-28 00:09:11 +02:00
parent a8c8729245
commit 1c6877f033
2 changed files with 3 additions and 4 deletions

File diff suppressed because one or more lines are too long

View file

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