blob: c44ca26591dc491c31e71090f6207578de19c566 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { initI18n, t } from "./i18n"
export async function runUpdater({ alertOnFail }: { alertOnFail: boolean }) {
await initI18n()
try {
await window.api.runUpdater(alertOnFail)
} catch {
if (alertOnFail) {
window.alert(t("desktop.updater.checkFailed.message"))
}
}
}
|