I\'m trying to refactor an Electron app to be more secure and am struggling to figure out how to structure my preload.js file and renderer file (mainWindow.js).
Given a w