index.js 331 B

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