Skip to content

Commit

Permalink
Merge pull request #140 from niieani/patch-1
Browse files Browse the repository at this point in the history
Use 'node' version when using Electron with nodeIntegration enabled
  • Loading branch information
LinusU authored Jul 14, 2016
2 parents c194185 + f6427b9 commit c676a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source-map-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function isInBrowser() {
return true;
if (environment === "node")
return false;
return ((typeof window !== 'undefined') && (typeof XMLHttpRequest === 'function'));
return ((typeof window !== 'undefined') && (typeof XMLHttpRequest === 'function') && !(window.require && window.module && window.process && window.process.type === "renderer"));
}

function hasGlobalProcessEventEmitter() {
Expand Down

0 comments on commit c676a64

Please sign in to comment.