12 lines
330 B
TypeScript
12 lines
330 B
TypeScript
import { CodeWidgetContent } from "$sb/types.ts";
|
|
import { SysCallMapping } from "../../plugos/system.ts";
|
|
import { broadcastReload } from "../components/widget_sandbox_iframe.ts";
|
|
|
|
export function clientCodeWidgetSyscalls(): SysCallMapping {
|
|
return {
|
|
"codeWidget.refreshAll": () => {
|
|
broadcastReload();
|
|
},
|
|
};
|
|
}
|