1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-08-06 05:17:31 +02:00

script: eslint fix

This commit is contained in:
Kushagra Gour
2018-04-15 20:00:44 +05:30
parent 292c0bde22
commit 1d4f172fc3

View File

@@ -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();
}
});