Skip to content

Commit

Permalink
refactor: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
1943time committed Sep 5, 2023
1 parent 10c9226 commit 6974834
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const baseUrl = is.dev && process.env['ELECTRON_RENDERER_URL'] ? process.
const workerPath = join(__dirname, '../renderer/worker.html')
import BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions
import fetch from 'node-fetch'
import {openAuth} from './auth'

export const windowOptions: BrowserWindowConstructorOptions = {
show: false,
Expand Down Expand Up @@ -51,9 +50,6 @@ export const registerApi = () => {
ipcMain.handle('get-path', (e, type: Parameters<typeof app.getPath>[0]) => {
return app.getPath(type)
})
ipcMain.on('open-auth', (e, type: 'github') => {
openAuth(type)
})
ipcMain.handle('get-env', () => {
return {
isPackaged: app.isPackaged,
Expand Down

0 comments on commit 6974834

Please sign in to comment.