escrcpy/electron/events/index.js

15 lines
279 B
JavaScript

import { app, ipcMain } from 'electron'
import updater from './updater/index.js'
import handles from './handles/index.js'
export default (mainWindow) => {
handles(mainWindow)
updater(mainWindow)
ipcMain.on('restart-app', () => {
app.relaunch()
app.quit()
})
}