I’m new to Electron, and I realized that there are two approaches to changing the url from the renderer process:
I can either delegate to the main process:
Or I can do it directly from the renderer process:
window.location.href = myUrl
Does anyone has an opinion about which is better to use? I’m not sure what the advantages of using each approach are.