build: Update Electron & React

This commit is contained in:
Felix Rieseberg
2020-12-13 16:14:18 -08:00
parent c29f98b6bc
commit 7a8a54c76b
8 changed files with 1223 additions and 684 deletions

View File

@@ -0,0 +1,14 @@
import { ipcRenderer } from 'electron';
import { IPC_COMMANDS } from '../../constants';
let _statePath = '';
export async function getStatePath(): Promise<string> {
if (_statePath) {
return _statePath;
}
const statePath = await ipcRenderer.invoke(IPC_COMMANDS.GET_STATE_PATH);
return _statePath = statePath;
}