How do I set a chromium command line flag in Electron?
问题 I am working on an Electron app and need to enable the following Chromium flag GuestViewCrossProcessFrames to make scaling work with webview. I tried calling the following line in my main.js but it doesn't seem to work. Also tried enabling plugins for the BrowserWindow as well as webview. app.commandLine.appendSwitch('--enable-features=GuestViewCrossProcessFrames'); Can someone help me setting up this flag? Thank you. 回答1: you can set by calling const { app } = require('electron'); app