Add 'infinite' gallery support.

This commit is contained in:
Dermot Duffy
2023-01-24 19:36:54 -08:00
parent 7b0cde0e50
commit d0a6f0928f
12 changed files with 286 additions and 115 deletions
+8
View File
@@ -155,3 +155,11 @@ export function getDurationString(start: Date, end: Date): string {
duration += `${seconds}s`;
return duration;
}
/**
* For debug purposes only.
* @param seconds
*/
export const sleep = async (seconds: number) => {
await new Promise(r => setTimeout(r, seconds * 1000));
}