|
@@ -3,14 +3,11 @@
|
|
|
// For more info, see:
|
|
|
// https://www.electronjs.org/docs/latest/api/screen
|
|
|
|
|
|
-const { app, BrowserWindow } = require('electron')
|
|
|
+const { app, BrowserWindow, screen } = require('electron/main')
|
|
|
|
|
|
let mainWindow = null
|
|
|
|
|
|
app.whenReady().then(() => {
|
|
|
- // We cannot require the screen module until the app is ready.
|
|
|
- const { screen } = require('electron')
|
|
|
-
|
|
|
// Create a window that fills the screen's available work area.
|
|
|
const primaryDisplay = screen.getPrimaryDisplay()
|
|
|
const { width, height } = primaryDisplay.workAreaSize
|