mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 06:27:09 +01:00
Fix restart function
This commit is contained in:
parent
73fd57cf33
commit
93960d4605
@ -1,4 +1,4 @@
|
||||
import { app, ipcRenderer } from 'electron';
|
||||
import { ipcRenderer } from 'electron';
|
||||
import Store from 'electron-store';
|
||||
|
||||
const store = new Store();
|
||||
@ -12,8 +12,7 @@ const get = (property: string) => {
|
||||
};
|
||||
|
||||
const restart = () => {
|
||||
app.relaunch();
|
||||
app.exit(0);
|
||||
ipcRenderer.send('app-restart');
|
||||
};
|
||||
|
||||
const enableMediaKeys = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user