Files
DecomEval/web/src/shared/installState.ts
T

12 lines
281 B
TypeScript

export let installed: boolean | null = null;
export async function refreshInstalled() {
const response = await fetch("/api/install/status");
installed = Boolean((await response.json()).installed);
return installed;
}
export function markInstalled() {
installed = true;
}