Browse Source

docs: remove width and height params (#45331)

remove width and height params
Kavindu Udara 2 months ago
parent
commit
d0110d897d
1 changed files with 1 additions and 4 deletions
  1. 1 4
      docs/tutorial/online-offline-events.md

+ 1 - 4
docs/tutorial/online-offline-events.md

@@ -57,10 +57,7 @@ Finally, create a `main.js` file for main process that creates the window.
 const { app, BrowserWindow } = require('electron')
 
 const createWindow = () => {
-  const onlineStatusWindow = new BrowserWindow({
-    width: 400,
-    height: 100
-  })
+  const onlineStatusWindow = new BrowserWindow()
 
   onlineStatusWindow.loadFile('index.html')
 }