Use @electron/remote module

This commit is contained in:
Labhansh Agrawal 2021-09-07 11:32:49 +00:00
parent b042d212fd
commit 832b51e1f3
9 changed files with 22 additions and 5 deletions

View file

@ -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');

View file

@ -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';