mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
chore: change remaining usages of process.mainModule (#38705)
This commit is contained in:
@@ -31,7 +31,7 @@ async function main () {
|
||||
}
|
||||
}
|
||||
|
||||
if (process.mainModule === module) {
|
||||
if (require.main === module) {
|
||||
main().catch((err) => {
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user