From 1d4f172fc303725f6fe0d9d8fd23a4d9bfe4b6bb Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Sun, 15 Apr 2018 20:00:44 +0530 Subject: [PATCH] script: eslint fix --- src/script.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/script.js b/src/script.js index 112b360..f10b6b9 100644 --- a/src/script.js +++ b/src/script.js @@ -286,6 +286,7 @@ loginModal, profileModal, profileAvatarImg, profileUserName, openItemsBtn, askTo }); } function toggleLayout(mode) { + /* eslint-disable no-param-reassign */ mode = window.innerWidth < 500 ? 2 : mode; if (currentLayoutMode === mode) { @@ -2415,7 +2416,10 @@ loginModal, profileModal, profileAvatarImg, profileUserName, openItemsBtn, askTo if (typeof e.target.className !== 'string') { return; } - if (e.target.classList.contains('modal-overlay') || e.target.classList.contains('modal')) { + if ( + e.target.classList.contains('modal-overlay') || + e.target.classList.contains('modal') + ) { closeAllOverlays(); } });