From 1605ec5ebdb95cf98ec2190c5d9e299156be0277 Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Fri, 6 Aug 2021 17:28:39 -0300 Subject: [PATCH] Temporary fix to load Twitter and other websites inside webviews Bug related with Electron: https://github.com/electron/electron/issues/25469 --- electron/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/electron/main.js b/electron/main.js index 33ffbcbe..f0def0f7 100644 --- a/electron/main.js +++ b/electron/main.js @@ -63,6 +63,10 @@ if (config.get('enable_hidpi_support') && (process.platform === 'win32')) { app.commandLine.appendSwitch('lang', config.get('locale') === 'en' ? 'en-US' : config.get('locale')); +// Temporary fix to load Twitter and other websites inside webviews +// Bug related with Electron: https://github.com/electron/electron/issues/25469 +app.commandLine.appendSwitch('disable-features', 'CrossOriginOpenerPolicy'); + // Because we build it using Squirrel, it will assign UserModelId automatically, so we match it here to display notifications correctly. // https://github.com/electron-userland/electron-builder/issues/362 app.setAppUserModelId('com.grupovrs.ramboxce');