From 710b55ea6ccd1d04703bf1fb132cebe03f20dfa3 Mon Sep 17 00:00:00 2001 From: "Mr. Stallion" Date: Mon, 28 Dec 2020 17:06:59 -0600 Subject: [PATCH] Fix Twitter crashes --- electron/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/electron/main.ts b/electron/main.ts index 500cc1f..9e07ca5 100644 --- a/electron/main.ts +++ b/electron/main.ts @@ -659,6 +659,10 @@ function onReady(): void { createWindow(); } +// Twitter fix +app.commandLine.appendSwitch('disable-features', 'CrossOriginOpenerPolicy'); + + const isSquirrelStart = require('electron-squirrel-startup'); //tslint:disable-line:no-require-imports if(isSquirrelStart || process.env.NODE_ENV === 'production' && !app.requestSingleInstanceLock()) app.quit(); else app.on('ready', onReady);