11 lines
376 B
TypeScript
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
|
|
}); |