mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 16:30:29 +08:00
640e188270
Former-commit-id: 435fb8e3e4f8e334ad3b0e95052edbdd9547d197
11 lines
314 B
JavaScript
11 lines
314 B
JavaScript
/**
|
|
* 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');
|
|
}
|