11 lines
376 B
TypeScript
Raw Normal View History

2021-04-19 20:27:12 +02:00
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
});