mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-11 01:32:04 +00:00
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
|
Preload file that will be executed in the renderer process
|
||||||
*/
|
*/
|
||||||
import electron from 'electron';
|
import {ipcRenderer, webFrame} from 'electron';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
const {ipcRenderer, webFrame} = electron;
|
|
||||||
|
|
||||||
const INJECT_JS_PATH = path.join(__dirname, '../../', 'inject/inject.js');
|
const INJECT_JS_PATH = path.join(__dirname, '../../', 'inject/inject.js');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user