1
0
silverbullet/packages/plugs/draft/draft.ts
2022-04-25 10:33:38 +02:00

8 lines
294 B
TypeScript

import * as clientStore from "@plugos/plugos-silverbullet-syscall/clientStore";
export async function toggleMode() {
let currentValue = !!(await clientStore.get("enableDraftMode"));
console.log("New draft mode", !currentValue);
await clientStore.set("enableDraftMode", !currentValue);
}