11cb0ef41Sopenharmony_ci/** 21cb0ef41Sopenharmony_ci * Detect Electron renderer / nwjs process, which is node, but we should 31cb0ef41Sopenharmony_ci * treat as a browser. 41cb0ef41Sopenharmony_ci */ 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ciif (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { 71cb0ef41Sopenharmony_ci module.exports = require('./browser.js'); 81cb0ef41Sopenharmony_ci} else { 91cb0ef41Sopenharmony_ci module.exports = require('./node.js'); 101cb0ef41Sopenharmony_ci} 11