You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
314 B

4 years ago
  1. /**
  2. * Detect Electron renderer / nwjs process, which is node, but we should
  3. * treat as a browser.
  4. */
  5. if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
  6. module.exports = require('./browser.js');
  7. } else {
  8. module.exports = require('./node.js');
  9. }