update condition

This commit is contained in:
taehoon 2019-10-21 15:56:16 -04:00
parent 2cadeeb724
commit c23a87d8ff
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ const enableBodyScroll = (el) => {
lockerEls = lockerEls.filter(e => e !== el)
}
setTimeout(() => {
if (!lockerEls.length) {
if (lockerEls.length === 0) {
if (previousNavPaddingRight !== undefined) {
document.getElementById('nav').style.paddingRight = previousNavPaddingRight
// Restore previousNavPaddingRight to undefined so disableBodyScroll knows it can be set again.