ESLint Migration
This commit is contained in:
parent
315be542b8
commit
48df8ab3b1
13 changed files with 133 additions and 112 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue