Files
plainleaf/web/syscalls/client_code_widget.ts
T
2025-03-22 08:40:26 +01:00

13 lines
387 B
TypeScript

import type { SysCallMapping } from "../../lib/plugos/system.ts";
import { reloadAllWidgets } from "../cm_plugins/code_widget.ts";
import { broadcastReload } from "../components/widget_sandbox_iframe.ts";
export function clientCodeWidgetSyscalls(): SysCallMapping {
return {
"codeWidget.refreshAll": () => {
broadcastReload();
return reloadAllWidgets();
},
};
}