Possible fix for UI not loading on returning from Settings.

pull/2737/head
Blaz Kristan 2022-01-22 13:54:17 +01:00
rodzic 6c52105ac7
commit 90ea01aa46
2 zmienionych plików z 1614 dodań i 1606 usunięć

Wyświetl plik

@ -38,9 +38,14 @@
l.addEventListener('load', (e) => {
// after rangetouch is loaded initialize global variable
ranges = RangeTouch.setup('input[type="range"]', {});
setTimeout(()=>{onLoad()},50); // start processing UI
let stateCheck = setInterval(() => {
if (document.readyState === 'complete') {
clearInterval(stateCheck);
// document ready, start processing UI
onLoad();
}
}, 100);
});
//h.appendChild(l); // if this fires too quickly for ESP8266 use next line
setTimeout(()=>{h.appendChild(l)},50);
});
setTimeout(()=>{h.appendChild(l)},50);

Plik diff jest za duży Load Diff