Use @electron/remote module
This commit is contained in:
parent
b042d212fd
commit
832b51e1f3
9 changed files with 22 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import {remote} from 'electron';
|
||||
import * as remote from '@electron/remote';
|
||||
import {HyperDispatch} from './hyper';
|
||||
import {closeSearch} from './actions/sessions';
|
||||
// TODO: Should be updates to new async API https://medium.com/@nornagon/electrons-remote-module-considered-harmful-70d69500f31
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import {ipcRenderer, remote} from 'electron';
|
||||
import {ipcRenderer} from 'electron';
|
||||
import * as remote from '@electron/remote';
|
||||
// TODO: Should be updates to new async API https://medium.com/@nornagon/electrons-remote-module-considered-harmful-70d69500f31
|
||||
|
||||
const plugins = remote.require('./plugins') as typeof import('../../app/plugins');
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// eslint-disable-next-line eslint-comments/disable-enable-pair
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
||||
import {remote} from 'electron';
|
||||
import * as remote from '@electron/remote';
|
||||
// TODO: Should be updates to new async API https://medium.com/@nornagon/electrons-remote-module-considered-harmful-70d69500f31
|
||||
|
||||
import {connect as reduxConnect, Options} from 'react-redux';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue