Skip to content

Commit

Permalink
Hide the electron import from Webpack
Browse files Browse the repository at this point in the history
Becuse Webpack is super annoying: webpack/webpack#196
  • Loading branch information
Anna Bartel committed Jul 5, 2018
1 parent 2ce16ca commit dd93f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function requestAsEventEmitter(options = {}) {
}

if (options.useElectronNet && process.versions.electron) {
const electron = require('electron');
const electron = global['require']('electron'); // eslint-disable-line dot-notation
fn = electron.net || electron.remote.net;
}

Expand Down

0 comments on commit dd93f2e

Please sign in to comment.