mirror of
https://github.com/chinchang/web-maker.git
synced 2025-08-07 05:46:38 +02:00
script: eslint fix
This commit is contained in:
@@ -286,6 +286,7 @@ loginModal, profileModal, profileAvatarImg, profileUserName, openItemsBtn, askTo
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
function toggleLayout(mode) {
|
function toggleLayout(mode) {
|
||||||
|
/* eslint-disable no-param-reassign */
|
||||||
mode = window.innerWidth < 500 ? 2 : mode;
|
mode = window.innerWidth < 500 ? 2 : mode;
|
||||||
|
|
||||||
if (currentLayoutMode === mode) {
|
if (currentLayoutMode === mode) {
|
||||||
@@ -2415,7 +2416,10 @@ loginModal, profileModal, profileAvatarImg, profileUserName, openItemsBtn, askTo
|
|||||||
if (typeof e.target.className !== 'string') {
|
if (typeof e.target.className !== 'string') {
|
||||||
return;
|
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();
|
closeAllOverlays();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user