TeaSpeak-Client/modules/renderer/hooks/ChangeLogClient.ts

14 lines
425 B
TypeScript
Raw Normal View History

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
});