mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2024-11-12 19:44:53 +00:00
update condition
This commit is contained in:
parent
2cadeeb724
commit
c23a87d8ff
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ const enableBodyScroll = (el) => {
|
||||||
lockerEls = lockerEls.filter(e => e !== el)
|
lockerEls = lockerEls.filter(e => e !== el)
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (!lockerEls.length) {
|
if (lockerEls.length === 0) {
|
||||||
if (previousNavPaddingRight !== undefined) {
|
if (previousNavPaddingRight !== undefined) {
|
||||||
document.getElementById('nav').style.paddingRight = previousNavPaddingRight
|
document.getElementById('nav').style.paddingRight = previousNavPaddingRight
|
||||||
// Restore previousNavPaddingRight to undefined so disableBodyScroll knows it can be set again.
|
// Restore previousNavPaddingRight to undefined so disableBodyScroll knows it can be set again.
|
||||||
|
|
Loading…
Reference in a new issue