Skip to content

Commit

Permalink
Update eel.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisKnott authored Feb 20, 2019
1 parent 7cc2f92 commit 5b36f8b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions eel/eel.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@ eel = {

eel._init();

// Avoid name collisions when using Electron, so jQuery etc work normally
window.nodeRequire = require;
delete window.require;
delete window.exports;
delete window.module;

if(typeof require !== 'undefined'){
// Avoid name collisions when using Electron, so jQuery etc work normally
window.nodeRequire = require;
delete window.require;
delete window.exports;
delete window.module;
}

0 comments on commit 5b36f8b

Please sign in to comment.