2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-23 02:28:55 +00:00

Use destructuring for ES6 import

This commit is contained in:
Goh Jia Hao 2016-05-26 16:51:07 +08:00
parent c91def53af
commit 286e5bf7d6

View File

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