signal-desktop/ts/shims/updateIpc.ts

13 lines
321 B
TypeScript
Raw Normal View History

2020-10-30 20:34:04 +00:00
// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { ipcRenderer } from 'electron';
2022-03-04 19:59:47 +00:00
export function startUpdate(): Promise<void> {
return ipcRenderer.invoke('start-update');
}
export function forceUpdate(): Promise<void> {
return ipcRenderer.invoke('updater/force-update');
}