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:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user