mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-04 15:39:31 +08:00
10 lines
314 B
Text
10 lines
314 B
Text
/**
|
|
* 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');
|
|
}
|