/** * Detect Electron renderer / nwjs process, which is node, but we should * treat as a browser. */ if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { module.exports = require('./browser.js'); } else { module.exports = require('./node.js'); }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
browser.js | File | 5.61 KB | 0644 |
|
common.js | File | 5.74 KB | 0644 |
|
index.js | File | 314 B | 0644 |
|
node.js | File | 4.37 KB | 0644 |
|