From 593fc3bbfb2b7d36462dcc78c2b09fb7a28c8917 Mon Sep 17 00:00:00 2001 From: vimux Date: Wed, 8 May 2019 13:37:28 -0400 Subject: [PATCH] Fix mobile menu in IE11 Remove trailing comma in functions (IE11) --- package.json | 7 +++++++ static/js/menu.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index fa01643..fcfa8ce 100644 --- a/package.json +++ b/package.json @@ -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 } }, diff --git a/static/js/menu.js b/static/js/menu.js index 852e4a9..7b59342 100644 --- a/static/js/menu.js +++ b/static/js/menu.js @@ -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' ); }