awesome-compose/nginx-nodejs-redis/web/node_modules/debug/src/index.js
ajeetraina 71b622220f modified configuration file for web
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
2022-03-13 13:09:07 +05:30

11 lines
263 B
JavaScript

/**
* 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');
}