Upgrade Electron to 39.2.7 to fix macOS Tahoe GPU performance regression (#931)

This commit is contained in:
Copilot
2025-12-20 03:06:22 +01:00
committed by GitHub
parent 91df6de4d4
commit 5a54ba4983
12 changed files with 52 additions and 42 deletions

View File

@@ -92,6 +92,6 @@
"webpack-dev-server": "^5.0.4"
},
"peerDependencies": {
"electron": "^29"
"electron": "^39"
}
}

View File

@@ -6,8 +6,7 @@ interface BrowserAuthWrapperProps {
}
const isBrowserMode =
typeof window !== 'undefined' &&
(typeof process === 'undefined' || process.env?.BROWSER_MODE === 'true')
typeof window !== 'undefined' && (typeof process === 'undefined' || process.env?.BROWSER_MODE === 'true')
export function BrowserAuthWrapper(props: BrowserAuthWrapperProps) {
const [isAuthenticated, setIsAuthenticated] = React.useState(false)

View File

@@ -10,9 +10,8 @@ import { ConnectionOptions } from '../../model/ConnectionOptions'
import { Theme, withStyles } from '@material-ui/core/styles'
// Check if we're in browser mode
const isBrowserMode =
typeof window !== 'undefined' &&
(typeof process === 'undefined' || process.env?.BROWSER_MODE === 'true')
const isBrowserMode =
typeof window !== 'undefined' && (typeof process === 'undefined' || process.env?.BROWSER_MODE === 'true')
const CertSelector = isBrowserMode ? BrowserCertificateFileSelection : CertificateFileSelection
interface Props {