2021-04-19 20:27:12 +02:00

11 lines
376 B
TypeScript

import * as loader from "tc-loader";
import {setGlobalContextMenuFactory} from "tc-shared/ui/ContextMenu";
import {ClientContextMenuFactory} from "../ContextMenu";
loader.register_task(loader.Stage.JAVASCRIPT_INITIALIZING, {
name: "context menu",
function: async () => {
setGlobalContextMenuFactory(new ClientContextMenuFactory());
},
priority: 60
});