mirror of
https://github.com/danbulant/ester_os
synced 2026-06-18 13:51:09 +00:00
Fix date & wrong element updating
This commit is contained in:
parent
1a1ed62184
commit
06431e354a
1 changed files with 2 additions and 1 deletions
|
|
@ -46,7 +46,8 @@ class Welcome implements RenderDef {
|
|||
console.log("Canceling timeout as welcome is no longer in state Rendered");
|
||||
return clearInterval(id);
|
||||
}
|
||||
this.element.innerText = d.getHours().toString().padStart(2, "0") + ":" + d.getMinutes().toString().padStart(2, "0");
|
||||
var d: Date = new Date();
|
||||
t.innerText = d.getHours().toString().padStart(2, "0") + ":" + d.getMinutes().toString().padStart(2, "0");
|
||||
}, 1000)
|
||||
|
||||
el.appendChild(t);
|
||||
|
|
|
|||
Loading…
Reference in a new issue