Electron and Node js Problem


Me and my friends are making a program using electron and node js and everytime when I try to access to the HTML file for lets say that I change the background color so I do this:
document.body.style.backgroundColor = “White”;
it tells me that document is not defined. help?


It might help if you share your code. In this case, it would be most helpful for us to be able to see the whole project so that we can see how the call is being made.


I already found a solution.