PageRenderTime 19ms CodeModel.GetById 15ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/node_modules/mquery/node_modules/debug/src/index.js

https://bitbucket.org/coleman333/smartsite
JavaScript | 10 lines | 5 code | 1 blank | 4 comment | 3 complexity | dd13897ea2eed92695bb7e4e744a9148 MD5 | raw file
 1/**
 2 * Detect Electron renderer process, which is node, but we should
 3 * treat as a browser.
 4 */
 5
 6if (typeof process !== 'undefined' && process.type === 'renderer') {
 7  module.exports = require('./browser.js');
 8} else {
 9  module.exports = require('./node.js');
10}