mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-11-12 16:03:50 +00:00
clean up: bugfixes
This commit is contained in:
parent
b1703955d8
commit
2cff560425
@ -121,7 +121,10 @@
|
||||
}
|
||||
|
||||
// Displays a clock part on the matrix display
|
||||
function displayClockPart(part: 'body' | 'seconds' | 'minutes' | 'hours', params: DisplayParams) {
|
||||
async function displayClockPart(
|
||||
part: 'body' | 'seconds' | 'minutes' | 'hours',
|
||||
params: DisplayParams
|
||||
) {
|
||||
const fdata = new FormData();
|
||||
if (part === 'body') {
|
||||
// If part is 'body', append the 'r' parameter to the form data
|
||||
@ -138,7 +141,7 @@
|
||||
fdata.append('x2', coords.x);
|
||||
fdata.append('y2', coords.y);
|
||||
}
|
||||
return redirectAPI({ fdata });
|
||||
return await redirectAPI({ fdata });
|
||||
}
|
||||
|
||||
// Converts the x and y values from percentage to matrix coordinates
|
||||
|
Loading…
Reference in New Issue
Block a user