mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-30 04:59:32 +00:00
Merge pull request #2643 from MMRIZE/develop
Add custom switches for electron mainWindow
This commit is contained in:
commit
e40ddd4b69
@ -11,7 +11,8 @@ _This release is scheduled to be released on 2021-10-01._
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Added showTime parameter to clock module for enabling/disabling time display in digital clock
|
- Added showTime parameter to clock module for enabling/disabling time display in analog clock
|
||||||
|
- Added custom electron switches from user config (`config.electronSwitches`)
|
||||||
|
|
||||||
### Updated
|
### Updated
|
||||||
|
|
||||||
|
@ -19,7 +19,8 @@ let mainWindow;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function createWindow() {
|
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 = {
|
let electronOptionsDefaults = {
|
||||||
width: 800,
|
width: 800,
|
||||||
height: 600,
|
height: 600,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user