Skip to content

Commit

Permalink
script: eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chinchang committed Apr 15, 2018
1 parent 292c0bd commit 1d4f172
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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();
}
});
Expand Down

0 comments on commit 1d4f172

Please sign in to comment.