Spaces:
Sleeping
Sleeping
File size: 353 Bytes
3d4392e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import { newClap } from "./newClap"
import { serializeClap } from "./serializeClap"
let globalState: {
blob?: Blob
} = {
blob: undefined
}
export async function getEmptyClap(): Promise<Blob> {
if (globalState.blob) { return globalState.blob }
const clap = newClap()
globalState.blob = await serializeClap(clap)
return globalState.blob
} |