Fix mobile menu in IE11

Remove trailing comma in functions (IE11)
This commit is contained in:
vimux 2019-05-08 13:37:28 -04:00
parent f7d555ae80
commit 593fc3bbfb
No known key found for this signature in database
GPG key ID: 5A34FDC4EE832E34
2 changed files with 8 additions and 1 deletions

View file

@ -27,6 +27,13 @@
2,
"tab"
],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}],
"no-tabs": 0
}
},

View file

@ -6,7 +6,7 @@ function toggleMenu() {
this.classList.toggle('main-nav__btn--active');
this.setAttribute(
'aria-expanded',
this.getAttribute('aria-expanded') === 'true' ? 'false' : 'true',
this.getAttribute('aria-expanded') === 'true' ? 'false' : 'true'
);
}