chore(deps): remove useless files

This commit is contained in:
草鞋没号
2021-11-08 20:35:41 +08:00
parent 42fd2574f5
commit 5f418ec731
5 changed files with 1 additions and 131 deletions

View File

@@ -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, () => { })
}

View File

@@ -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)