1
0
Fork 0

fix: screen update is faster

This commit is contained in:
flp 2021-12-20 20:11:32 +01:00
parent dfef1c583a
commit 4c8ae34d0e

View file

@ -50,10 +50,6 @@ const MCDU = (function () {
img.addEventListener('error', reject);
img.addEventListener('load', (event) => {
const gotCacheBust = parseInt(event.target.src.split('cacheBust=')[1]) || 0;
if (gotCacheBust !== currentCacheBust) {
return;
}
showScreenImageLoadState(true);
resolve(url);
});
@ -160,7 +156,6 @@ const MCDU = (function () {
]
});
request.send(body);
setTimeout(refreshScreen, 150);
return new Promise((resolve) => {
request.addEventListener('load', () => {
lastSentText = text;