Unfortunately, it did not work because require library was missing. I added it to the index.html and modified my code a bit:
But that failed too. Particularly, it was looking for electron.js file which was not really there!
Generally I am looking for a way to call a function that resides inside the application of the render process and get a returned value from that function. Does anyone have any clue?
Please note that my application is a bundled, minified Angular application.