Use the deno-based build

This commit is contained in:
Zef Hemel
2022-10-15 20:14:55 +02:00
parent 5f9bde8451
commit cb79d165a5
9 changed files with 26 additions and 11596 deletions

View File

@@ -1,4 +1,4 @@
import { flashNotification } from "@silverbulletmd/plugos-silverbullet-syscall/editor";
import { editor } from "$sb/silverbullet-syscall/mod.ts";
const loneRangerQuotes = [
"Hi-Yo! Silver",
@@ -8,5 +8,7 @@ const loneRangerQuotes = [
];
export async function helloWorld() {
await flashNotification(loneRangerQuotes[Math.floor(Math.random() * loneRangerQuotes.length)]);
await editor.flashNotification(
loneRangerQuotes[Math.floor(Math.random() * loneRangerQuotes.length)],
);
}