implement very simple demo mode

This commit is contained in:
nymkappa
2024-10-19 16:07:09 +09:00
parent 6e5cfa9bf2
commit f0c76c1349
2 changed files with 31 additions and 0 deletions

View File

@@ -226,6 +226,14 @@ export function insecureRandomUUID(): string {
return uuid.slice(0, -1);
}
export function sleep$(ms: number): Promise<void> {
return new Promise((resolve) => {
setTimeout(() => {
resolve();
}, ms);
});
}
// https://stackoverflow.com/a/60467595
export function md5(inputString): string {
var hc="0123456789abcdef";