parent
e563521416
commit
74c3930e0a
41 changed files with 141 additions and 87 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import IPC_EVENTS from './utils/IpcEvents';
|
||||
import { IpcRenderer, ipcRenderer } from 'electron';
|
||||
import IPC_EVENTS from "./utils/IpcEvents";
|
||||
import { IpcRenderer, ipcRenderer } from "electron";
|
||||
|
||||
function assertEventAllowed(event: string) {
|
||||
if (!(event in IPC_EVENTS)) throw new Error(`Event ${event} not allowed.`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue