diff --git a/mobile/html/boot.ts b/mobile/html/boot.ts index efc4bdd3..ac818ddd 100644 --- a/mobile/html/boot.ts +++ b/mobile/html/boot.ts @@ -1,33 +1,33 @@ -declare namespace window { - var ReactNativeWebView: any; - var receiveMessage: any; -} - -function safeRun(fn: () => Promise) { - fn().catch((e) => { - console.error(e); - }); -} - -window.receiveMessage = (msg: string) => { - console.log("Received message", msg); -}; -// @ts-ignore -window.onerror = (msg, source, lineno, colno, error) => { - console.error("Error", msg, source, lineno, error); -}; - -console.log = (...args) => { - window.ReactNativeWebView.postMessage( - JSON.stringify({ type: "console.log", args: args }) - ); -}; - -console.error = (...args) => { - window.ReactNativeWebView.postMessage( - JSON.stringify({ type: "console.error", args: args }) - ); -}; +// declare namespace window { +// var ReactNativeWebView: any; +// var receiveMessage: any; +// } +// +// function safeRun(fn: () => Promise) { +// fn().catch((e) => { +// console.error(e); +// }); +// } +// +// window.receiveMessage = (msg: string) => { +// console.log("Received message", msg); +// }; +// // @ts-ignore +// window.onerror = (msg, source, lineno, colno, error) => { +// console.error("Error", msg, source, lineno, error); +// }; +// +// console.log = (...args) => { +// window.ReactNativeWebView.postMessage( +// JSON.stringify({ type: "console.log", args: args }) +// ); +// }; +// +// console.error = (...args) => { +// window.ReactNativeWebView.postMessage( +// JSON.stringify({ type: "console.error", args: args }) +// ); +// }; try { // let editor = new Editor( // new Space(`http://192.168.2.22:3000/fs`, null), diff --git a/plugs/core/navigate.ts b/plugs/core/navigate.ts index ca50f49e..791ad10e 100644 --- a/plugs/core/navigate.ts +++ b/plugs/core/navigate.ts @@ -6,10 +6,11 @@ import { navigate as navigateTo, openUrl, } from "plugos-silverbullet-syscall/editor"; +import { taskToggleAtPos } from "../tasks/task"; const materializedQueryPrefix = /