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);