chore(deps): remove useless files
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* Expose something function to renderer
|
||||
*/
|
||||
import { BrowserWindow, ipcMain } from 'electron'
|
||||
import {
|
||||
LOGIN,
|
||||
LOGOUT,
|
||||
TOGGLE_DEVTOOLS,
|
||||
} from '@/common/constant/event'
|
||||
|
||||
export function register(win: BrowserWindow) {
|
||||
ipcMain.handle(TOGGLE_DEVTOOLS, () => {
|
||||
win.webContents.toggleDevTools()
|
||||
})
|
||||
ipcMain.handle(LOGOUT, () => { })
|
||||
}
|
||||
@@ -1,10 +1,6 @@
|
||||
import path from 'path'
|
||||
import { app, BrowserWindow } from 'electron'
|
||||
import { register } from './communication'
|
||||
import { app, BrowserWindow, ipcMain } from 'electron'
|
||||
|
||||
/**
|
||||
* Main Process some code reference https://github.com/cawa-93/vite-electron-builder
|
||||
*/
|
||||
app.disableHardwareAcceleration()
|
||||
|
||||
if (!app.requestSingleInstanceLock()) {
|
||||
@@ -28,9 +24,6 @@ function bootstrap() {
|
||||
win.webContents.openDevTools()
|
||||
win.loadURL(`http://localhost:${process.env.PORT}`)
|
||||
}
|
||||
|
||||
// something init setup
|
||||
register(win)
|
||||
}
|
||||
|
||||
app.whenReady().then(bootstrap)
|
||||
|
||||
Reference in New Issue
Block a user