attempt to import win-ca on windows (#6136)

* attempt to import win-ca on windows

otherwise we won't see system x509 cert authorities, which leaves people
high and dry if they're using an enterprise mitm tls box (😢)
This commit is contained in:
Paul Tagliamonte
2025-04-05 12:30:48 -04:00
committed by GitHub
parent a059166b9c
commit 48e1a8ed02
4 changed files with 49 additions and 0 deletions

View File

@ -39,6 +39,9 @@ import {
enableMenu,
} from '@src/menu'
// If we're on Windows, pull the local system TLS CAs in
require('win-ca')
let mainWindow: BrowserWindow | null = null
// Preemptive code, GC may delete a menu while a user is using it as seen in VSCode