14 lines
425 B
TypeScript
14 lines
425 B
TypeScript
import * as loader from "tc-loader";
|
|
import {Stage} from "tc-loader";
|
|
import {setNativeUpdater} from "tc-shared/update";
|
|
import {ClientUpdater} from "../ClientUpdater";
|
|
|
|
loader.register_task(Stage.JAVASCRIPT_INITIALIZING, {
|
|
name: "web updater init",
|
|
function: async () => {
|
|
const updater = new ClientUpdater();
|
|
await updater.initialize();
|
|
setNativeUpdater(updater);
|
|
},
|
|
priority: 50
|
|
}); |