signal-desktop/ts/shims/bounceAppIcon.ts

13 lines
337 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
2020-06-04 18:16:19 +00:00
import { ipcRenderer } from 'electron';
2020-09-16 19:31:05 +00:00
export function bounceAppIconStart(isCritical = false): void {
2020-06-04 18:16:19 +00:00
ipcRenderer.send('bounce-app-icon-start', isCritical);
}
2020-09-16 19:31:05 +00:00
export function bounceAppIconStop(): void {
2020-06-04 18:16:19 +00:00
ipcRenderer.send('bounce-app-icon-stop');
}