implement very simple demo mode

This commit is contained in:
nymkappa committed 2024-10-19 16:07:09 +09:00
1 parent 6e5cfa9bf2
commit f0c76c1349
2 files changed
+31

No files matched your search

+8
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";