1
0

Fix website attempt

This commit is contained in:
Zef Hemel 2022-08-01 11:38:22 +02:00
parent d6fd595b69
commit ddfb75e1dd
2 changed files with 1 additions and 21 deletions

View File

@ -4,8 +4,6 @@ import { Space } from "@silverbulletmd/common/spaces/space";
import { HttpSpacePrimitives } from "@silverbulletmd/common/spaces/http_space_primitives";
safeRun(async () => {
// let localSpace = new Space(new IndexedDBSpacePrimitives("pages"), true);
// localSpace.watch();
let password: string | undefined =
localStorage.getItem("password") || undefined;
@ -31,24 +29,6 @@ safeRun(async () => {
console.log("Booting...");
// // @ts-ignore
// window.syncer = async () => {
// let lastLocalSync = +(localStorage.getItem("lastLocalSync") || "0"),
// lastRemoteSync = +(localStorage.getItem("lastRemoteSync") || "0");
// let syncer = new SpaceSync(
// serverSpace,
// localSpace,
// lastRemoteSync,
// lastLocalSync,
// "_trash/"
// );
// await syncer.syncPages(
// SpaceSync.primaryConflictResolver(serverSpace, localSpace)
// );
// localStorage.setItem("lastLocalSync", "" + syncer.secondaryLastSync);
// localStorage.setItem("lastRemoteSync", "" + syncer.primaryLastSync);
// console.log("Done!");
// };
let editor = new Editor(serverSpace, document.getElementById("sb-root")!, "");
await editor.init();
// @ts-ignore

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
echo "Building silver bullet"
npm run clean-build