2023-11-15 09:08:21 +00:00
|
|
|
import { SysCallMapping } from "../../plugos/system.ts";
|
2023-12-28 15:14:30 +00:00
|
|
|
import { reloadAllMarkdownWidgets } from "../cm_plugins/markdown_widget.ts";
|
2023-11-15 09:08:21 +00:00
|
|
|
import { broadcastReload } from "../components/widget_sandbox_iframe.ts";
|
|
|
|
|
|
|
|
export function clientCodeWidgetSyscalls(): SysCallMapping {
|
|
|
|
return {
|
|
|
|
"codeWidget.refreshAll": () => {
|
|
|
|
broadcastReload();
|
2023-12-28 15:14:30 +00:00
|
|
|
reloadAllMarkdownWidgets();
|
2023-11-15 09:08:21 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|