12 lines
281 B
TypeScript
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;
|
|
}
|