Thank you for your help.
I used a tricky tips to solve my problem.
When I lauch my Electron App on my local network, it creates a copy of a “Launcher Electron app” to the userData. It closes the 1st electron app and launches the second stored in userData. This app runs the html file stored on the local network. The WebGl is then enabled.