🚨 FIX: Loading screen блокирует клики - принудительное удаление из DOM
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -10,11 +10,13 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
loadingScreen.style.opacity = '0';
|
||||
loadingScreen.style.pointerEvents = 'none';
|
||||
setTimeout(() => {
|
||||
loadingScreen.style.display = 'none';
|
||||
loadingScreen.remove(); // Полностью удаляем элемент
|
||||
console.log('SmartSolTech: Loading screen removed');
|
||||
// Полностью удаляем элемент из DOM
|
||||
if (loadingScreen.parentNode) {
|
||||
loadingScreen.parentNode.removeChild(loadingScreen);
|
||||
console.log('SmartSolTech: Loading screen completely removed from DOM');
|
||||
}
|
||||
}, 300);
|
||||
}, 500); // Уменьшили время ожидания
|
||||
}, 200); // Уменьшили время ожидания до 200ms
|
||||
} else {
|
||||
console.log('SmartSolTech: Loading screen not found');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user