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