Disable NODE_OPTIONS in entry file

This commit is contained in:
TC
2022-01-07 22:09:26 +01:00
parent 7f3a554bc3
commit 81dadeddb9
2 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,9 @@ unhandled({
showDialog: false,
});
// Disable Node options if the env var is set
process.env.NODE_OPTIONS = "";
const app = electron.app;
app.commandLine.appendSwitch(
"js-flags",