diff --git a/source-map-support.js b/source-map-support.js index 99b590c..a6902d7 100644 --- a/source-map-support.js +++ b/source-map-support.js @@ -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() {