mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 17:44:52 -04:00
Add custom switches for electron mainWindow
This commit is contained in:
parent
8589d9c482
commit
dbdff38d2e
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,8 @@ let mainWindow;
|
|||
*
|
||||
*/
|
||||
function createWindow() {
|
||||
app.commandLine.appendSwitch("autoplay-policy", "no-user-gesture-required");
|
||||
let electronSwitchesDefaults = ["autoplay-policy", "no-user-gesture-required"];
|
||||
app.commandLine.appendSwitch(...new Set(electronSwitchesDefaults, config.electronSwitches));
|
||||
let electronOptionsDefaults = {
|
||||
width: 800,
|
||||
height: 600,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue