mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-11-14 08:53:49 +00:00
move async-await chain downwards
This commit is contained in:
parent
727140322e
commit
cfe1e5c0cc
@ -74,7 +74,7 @@
|
||||
return 50 + radius * relative;
|
||||
}
|
||||
|
||||
async function update() {
|
||||
function update() {
|
||||
// Get current datetime and date
|
||||
const current = new Date(Date.now());
|
||||
const day = new Date(current.toDateString());
|
||||
@ -107,7 +107,7 @@
|
||||
}
|
||||
};
|
||||
// If enabled, update clock display
|
||||
if (clockEnabled) await displayMatrixClock();
|
||||
if (clockEnabled) displayMatrixClock();
|
||||
}
|
||||
|
||||
// Converts the x and y values from percentage to matrix coordinates
|
||||
|
Loading…
Reference in New Issue
Block a user