mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
Option to run custom code inside main.js #655
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lukasportal on GitHub (Apr 26, 2021).
Originally assigned to: @GregorBiswanger on GitHub.
Today we don't have access to main.js which is the entry point for the electron app and where it starts the asp.net executable.
It would be great if we had a way to maybe specify a path to a js file in the manifest where will be executed inside the main.js file.
The main reason for this is that I need to disable error dialogs so it won't stop the execution.
The code to disable the error dialogs is this:
I need to have access to the electron.dialog but this is only available from the main.js file and not from the proxy where it'll only be available as electron.remote.dialog which is useless for this.
@lukasportal commented on GitHub (May 2, 2021):
or maybe just a feature to disable error box and console.error/log instead?
do you know of any workaround to have this possible right now?
@ppostman commented on GitHub (Oct 29, 2021):
@lukasportal did you find a solution to this?
@GregorBiswanger commented on GitHub (Mar 28, 2023):
🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉
With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!