ESLint Migration

This commit is contained in:
Sidney Keese 2020-09-03 07:59:24 -07:00 committed by Josh Perez
parent 315be542b8
commit 48df8ab3b1
13 changed files with 133 additions and 112 deletions

View file

@ -2,15 +2,11 @@ import { app, BrowserWindow, ipcMain } from 'electron';
let bounceId = -1;
export function init(win: BrowserWindow) {
export function init(win: BrowserWindow): void {
ipcMain.on('bounce-app-icon-start', (_, isCritical = false) => {
if (app.dock) {
const type = isCritical ? 'critical' : 'informational';
bounceId = app.dock.bounce(type);
if (bounceId < 0) {
return;
}
} else if (win && win.flashFrame) {
win.once('focus', () => {
win.flashFrame(false);