There was an error while loading. Please reload this page.
1 parent 738f65c commit 88cbb23Copy full SHA for 88cbb23
1 file changed
src/navigation/main.ts
@@ -40,6 +40,9 @@ const serializeCertificate = (certificate: Certificate): string =>
40
const queuedTrustRequests = new Map<Certificate['fingerprint'], Array<(isTrusted: boolean) => void>>();
41
42
export const setupNavigation = async (): Promise<void> => {
43
+ app.userAgentFallback = app.userAgentFallback.replace(`Electron/${ process.versions.electron }`, 'Electron');
44
+ app.userAgentFallback = app.userAgentFallback.replace(`Chrome/${ process.versions.chrome }`, 'Chrome');
45
+
46
app.addListener('certificate-error', async (event, _webContents, requestedUrl, error, certificate, callback) => {
47
event.preventDefault();
48
0 commit comments