diff --git a/app/assets/javascripts/app/lib/base/email-addresses.js b/app/assets/javascripts/app/lib/base/email-addresses.js index 912c6c5d5..41789f638 100644 --- a/app/assets/javascripts/app/lib/base/email-addresses.js +++ b/app/assets/javascripts/app/lib/base/email-addresses.js @@ -947,7 +947,7 @@ parse5322.parseAddressList = parseAddressListSimple; // if electron is used, go back to non CommonJS //if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { -if (typeof module !== 'undefined' && typeof module.exports !== 'undefined' && !(process && process.version && process.versions.electron)) { +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined' && !(window.process && window.process.version && window.process.versions.electron)) { module.exports = parse5322; } else { global.emailAddresses = parse5322; diff --git a/app/assets/javascripts/app/lib/core/jquery-2.2.1.js b/app/assets/javascripts/app/lib/core/jquery-2.2.1.js index 7820de241..ac74e6a73 100644 --- a/app/assets/javascripts/app/lib/core/jquery-2.2.1.js +++ b/app/assets/javascripts/app/lib/core/jquery-2.2.1.js @@ -16,7 +16,7 @@ // if electron is used, go back to non CommonJS //if ( typeof module === "object" && typeof module.exports === "object" ) { - if ( typeof module === "object" && typeof module.exports === "object" && !(process && process.version && process.versions.electron)) { + if ( typeof module === "object" && typeof module.exports === "object" && !(window.process && window.process.version && window.process.versions.electron)) { // For CommonJS and CommonJS-like environments where a proper `window` // is present, execute the factory and get jQuery. // For environments that do not have a `window` with a `document`