فهرست منبع

Changement taille fenetre electron

Loquicom 5 سال پیش
والد
کامیت
c640182ea5
1فایلهای تغییر یافته به همراه2 افزوده شده و 5 حذف شده
  1. 2 5
      main.js

+ 2 - 5
main.js

@@ -19,15 +19,12 @@ if (require('electron-squirrel-startup')) { // eslint-disable-line global-requir
 const createWindow = () => {
   // Create the browser window.
   const mainWindow = new BrowserWindow({
-    width: 800,
-    height: 600,
+    width: 1200,
+    height: 720,
   });
 
   // and load the index.html of the app.
   mainWindow.loadFile(path.join(__dirname, `/${folder}/index.html`));
-
-  // Open the DevTools.
-  mainWindow.webContents.openDevTools();
 };
 
 // This method will be called when Electron has finished