Browse Source

Temporary fix to load Twitter and other websites inside webviews

Bug related with Electron: https://github.com/electron/electron/issues/25469
pull/3102/head
Ramiro Saenz 4 years ago
parent
commit
1605ec5ebd
  1. 4
      electron/main.js

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

Loading…
Cancel
Save