diff --git a/packages/plugos-silverbullet-syscall/editor.ts b/packages/plugos-silverbullet-syscall/editor.ts index 89b6f5e..1f78460 100644 --- a/packages/plugos-silverbullet-syscall/editor.ts +++ b/packages/plugos-silverbullet-syscall/editor.ts @@ -65,7 +65,7 @@ export function showPanel( id: "lhs" | "rhs" | "bhs" | "modal", mode: number, html: string, - script: string + script: string = "" ): Promise { return syscall("editor.showPanel", id, mode, html, script); } diff --git a/packages/plugs/core/debug.ts b/packages/plugs/core/debug.ts index 6b5e990..76df4e5 100644 --- a/packages/plugs/core/debug.ts +++ b/packages/plugs/core/debug.ts @@ -1,13 +1,11 @@ import { getLogs } from "@plugos/plugos-syscall/sandbox"; import { getText, - hideBhs, - showBhs, + hidePanel, showPanel, } from "@silverbulletmd/plugos-silverbullet-syscall/editor"; import { parseMarkdown } from "@silverbulletmd/plugos-silverbullet-syscall/markdown"; import { getServerLogs } from "@silverbulletmd/plugos-silverbullet-syscall/sandbox"; -import { invokeFunction } from "@silverbulletmd/plugos-silverbullet-syscall/system"; export async function parsePageCommand() { console.log( @@ -21,8 +19,8 @@ export async function showLogsCommand() { let serverLogs = await getServerLogs(); await showPanel( - "modal", - 100, + "bhs", + 1, `