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