Use strings, not numbers

master
Kuba Orlik 9 months ago
parent 4613025579
commit b660bd9769

@ -59,7 +59,8 @@ export default new (class DashboardPage extends StatefulPage<State, typeof actio
return ( return (
<div style="font-size: 2rem"> <div style="font-size: 2rem">
<div style="font-size: 10rem; text-align: center;"> <div style="font-size: 10rem; text-align: center;">
{date.getHours()}:{date.getMinutes().toString().padStart(2, "0")} {date.getHours().toString().padStart(2, "0")}:
{date.getMinutes().toString().padStart(2, "0")}
</div> </div>
<table style="margin: 0 auto"> <table style="margin: 0 auto">
<tbody> <tbody>
@ -76,9 +77,10 @@ export default new (class DashboardPage extends StatefulPage<State, typeof actio
{ {
/* HTML */ `<script> /* HTML */ `<script>
setInterval(function () { (function () {
document.location = document.location; document.location = document.location;
}, 15 * 1000); }),
15 * 1000;
</script>` </script>`
} }
</div> </div>

Loading…
Cancel
Save