diff --git a/src/helpers/ipc.js b/src/helpers/ipc.js index c9a6a344..7270b071 100644 --- a/src/helpers/ipc.js +++ b/src/helpers/ipc.js @@ -1,5 +1,4 @@ // @flow -import { ipcRenderer } from 'electron' import { Observable } from 'rxjs' import uuidv4 from 'uuid/v4' @@ -63,6 +62,7 @@ export class Command { * const res = await send(data).toPromise() */ send(data: In): Observable { + const { ipcRenderer } = require('electron') return Observable.create(o => { const { channel, type, id } = this const requestId: string = uuidv4()