From 108d48b35d5e4ccf326463979079429cb0c9f615 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Tue, 17 Nov 2020 12:11:41 +0100 Subject: [PATCH] Add temporary fix for twitter (and others) not loading in webviews Pending https://github.com/electron/electron/issues/25469 --- src/main.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.ts b/src/main.ts index 708b699..5773858 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,6 +4,9 @@ import {app} from "electron"; import Meta from "./Meta"; 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()); // Check if application is already running