summaryrefslogtreecommitdiffstats
path: root/middleware/node_modules/debug/src/index.js
blob: e12cf4d58c9f2d6d2d2e656f9cbb0f703cb5fa29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
/**
 * Detect Electron renderer process, which is node, but we should
 * treat as a browser.
 */

if (typeof process !== 'undefined' && process.type === 'renderer') {
  module.exports = require('./browser.js');
} else {
  module.exports = require('./node.js');
}