TeaSpeak-Client/modules/renderer/hooks/ChangeLogClient.ts
2020-08-23 11:54:45 +02:00

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