Update Electron

This commit is contained in:
Kenta420 2024-03-15 14:10:24 +07:00
parent cae6d582ac
commit c84ee948f5
22 changed files with 763 additions and 152 deletions

View file

@ -3,7 +3,7 @@ import { app, BrowserWindow, ipcMain, session, shell } from 'electron'
import path from 'node:path'
import deeplink from './deeplink'
import { eventGetKeyChain } from './keychain'
import { AdbDaemon } from './adb'
import { AdbTcpSocket } from './adb'
// The built directory structure
//
@ -125,7 +125,7 @@ app.whenReady().then(() => {
deeplink(app, win, ipcMain, shell)
// adb
AdbDaemon(win, ipcMain)
AdbTcpSocket(win, ipcMain)
//keychain
eventGetKeyChain(ipcMain)
@ -146,3 +146,8 @@ app.whenReady().then(() => {
callback({ responseHeaders: details.responseHeaders })
})
})
process.on('unhandledRejection', () => {
console.error('Unhandled Rejection ignoring')
// Application specific logging, throwing an error, or other logic here
})