12 lines
518 B
TypeScript
12 lines
518 B
TypeScript
import * as loader from "tc-loader";
|
|
import {Stage} from "tc-loader";
|
|
import {setExternalModalControllerFactory} from "tc-shared/ui/react-elements/external-modal";
|
|
import {ExternalModalController} from "../ExternalModalHandler";
|
|
|
|
loader.register_task(Stage.JAVASCRIPT_INITIALIZING, {
|
|
priority: 50,
|
|
name: "external modal controller factory setup",
|
|
function: async () => {
|
|
setExternalModalControllerFactory((modal, events, userData) => new ExternalModalController(modal, events, userData));
|
|
}
|
|
}); |