Editor refact: rename Editor to Client

This commit is contained in:
Zef Hemel
2023-07-14 16:56:20 +02:00
parent f3936f9b2f
commit 16842a1c4b
20 changed files with 47 additions and 49 deletions
+5 -7
View File
@@ -1,16 +1,14 @@
import { safeRun } from "../common/util.ts";
import { Editor } from "./editor.ts";
import { Client } from "./client.ts";
safeRun(async () => {
console.log("Booting");
console.log("Booting SilverBullet...");
const editor = new Editor(
const client = new Client(
document.getElementById("sb-root")!,
);
window.editor = editor;
await editor.init();
await client.init();
window.client = client;
});
if (navigator.serviceWorker) {