mirror of
https://gitea.com/actions/stale.git
synced 2026-07-23 06:32:20 +00:00
0649bd8119
* Bumping actions/github to 2.2.0 for GHES * Husky commit correct node modules
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');
|
|
}
|