clean code

This commit is contained in:
JellyBrick
2023-11-27 19:26:45 +09:00
parent 3ffbfbe0e3
commit 2fe28cf126
16 changed files with 43 additions and 41 deletions

View File

@ -1,12 +1,10 @@
import path from 'node:path';
import { app, BrowserWindow, ipcMain, ipcRenderer } from 'electron';
import { app, BrowserWindow, ipcMain } from 'electron';
import config from '../config';
import config from '@/config';
export const restart = () => {
process.type === 'browser' ? restartInternal() : ipcRenderer.send('restart');
};
export const restart = () => restartInternal();
export const setupAppControls = () => {
ipcMain.on('restart', restart);