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
1 changed files with 1 additions and 2 deletions

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