Use destructuring for ES6 import
This commit is contained in:
parent
c91def53af
commit
286e5bf7d6
|
@ -1,10 +1,9 @@
|
|||
/**
|
||||
Preload file that will be executed in the renderer process
|
||||
*/
|
||||
import electron from 'electron';
|
||||
import {ipcRenderer, webFrame} from 'electron';
|
||||
import path from 'path';
|
||||
import fs from 'fs';
|
||||
const {ipcRenderer, webFrame} = electron;
|
||||
|
||||
const INJECT_JS_PATH = path.join(__dirname, '../../', 'inject/inject.js');
|
||||
|
||||
|
|
Loading…
Reference in New Issue