Remote is deprecated per the docs and the app object can only be accessed on main. This change will allow the continued support of remote, but if remote is unavailable (as it can be in some electron configurations), it will use electron.app, which is available in main.
Remote is deprecated per the docs and the app object can only be accessed on main. This change will allow the continued support of remote, but if remote is unavailable (as it can be in some electron configurations), it will use electron.app, which is available in main.