mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-04-25 06:58:30 -04:00
Added zoom factor config value and Electron option
This commit is contained in:
parent
c949548150
commit
a08fa721cf
2 changed files with 4 additions and 3 deletions
|
@ -20,9 +20,9 @@ let mainWindow;
|
|||
function createWindow() {
|
||||
// Create the browser window.
|
||||
if (config.kioskmode) {
|
||||
mainWindow = new BrowserWindow({width: 800, height: 600, x: 0, y: 0, kiosk:true, darkTheme: true, webPreferences: {nodeIntegration: false}});
|
||||
mainWindow = new BrowserWindow({width: 800, height: 600, x: 0, y: 0, kiosk:true, darkTheme: true, webPreferences: {nodeIntegration: false, zoomFactor: config.zoom}});
|
||||
} else {
|
||||
mainWindow = new BrowserWindow({width: 800, height: 600, x: 0, y: 0, fullscreen: true, autoHideMenuBar: true, darkTheme: true, webPreferences: {nodeIntegration: false}});
|
||||
mainWindow = new BrowserWindow({width: 800, height: 600, x: 0, y: 0, fullscreen: true, autoHideMenuBar: true, darkTheme: true, webPreferences: {nodeIntegration: false, zoomFactor: config.zoom}});
|
||||
}
|
||||
|
||||
// and load the index.html of the app.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue