Fix: Ensure Electron browser applies web security and SharedArrayBuffer settings before load
Previously, the Electron browser instance would initialize before critical settings such as webSecurity and SharedArrayBuffer were correctly applied. This caused the browser to launch without these features enabled, leading to unexpected behavior. This fix ensures settings are correctly configured prior to window load.