Currently, I am developing an electron application. In my index.html file, I have successfully loaded JavaScript files in the head tag and can access the JS functions without any problems.
Now, I have created a separate browser window with another HTML file. However, when attempting to load in another JavaScript file, it does not allow me to access any functions. Strangely, I can easily load the CSS file with no issues. Why is loading a JS sheet causing so much trouble? I have been trying to solve this for 2 days now :/
I tried using module.exports in my sidebar.js file in order to trigger functions using the renderer.js file and main.js file, but encountered an error that says "document has not been defined."
Does anyone have a solution to this issue? It may be something simple, but I'm really struggling to figure it out.