1
0
silverbullet/packages/plugs/draft/draft.ts
2022-04-24 18:06:34 +02:00

8 lines
302 B
TypeScript

import * as clientStore from "@silverbulletmd/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);
}