This commit is contained in:
2023-11-07 14:56:00 +03:00
parent a19017351b
commit fe4539c9ed
4 changed files with 16 additions and 3 deletions

View File

@@ -787,7 +787,12 @@ function getOpenCurtain () {
curtains.forEach(function (){
let el = curtains[i]
if (el.classList.contains('open')){
curtain.push(el)
let type_data = getTypeOfData(curtain)
if (type_data === 'object'){
curtain.push(el)
} else {
curtain = el
}
}
i++
})