Add temporary fix for twitter (and others) not loading in webviews

Pending https://github.com/electron/electron/issues/25469
This commit is contained in:
Alice Gaudon 2020-11-17 12:11:41 +01:00
parent 0e9ed7492c
commit 108d48b35d

View File

@ -4,6 +4,9 @@ import {app} from "electron";
import Meta from "./Meta"; import Meta from "./Meta";
import Application from "./Application"; import Application from "./Application";
// Fix for twitter (and others) in webviews - pending https://github.com/electron/electron/issues/25469
app.commandLine.appendSwitch('disable-features', 'CrossOriginOpenerPolicy');
const application = new Application(Meta.isDevMode()); const application = new Application(Meta.isDevMode());
// Check if application is already running // Check if application is already running