Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can i turn off the debug view in electron?i cant find any about it using google

enter image description here

every time i run my electron app,it starts like this! always turn the front-end elements view,how can i start my app without this show on GUI? besides,why it goes with black bg? it went well on chrome. thank u,guys

like image 305
rookie Avatar asked Apr 20 '16 04:04

rookie


Video Answer


2 Answers

The black screen is probably due to the css files routes. Check them.

If you followed the starter electron tutorial, you are most likely calling mainWindow.openDevTools();. Remove that line and you will not get the console.

like image 88
Daniel Higueras Avatar answered Sep 19 '22 16:09

Daniel Higueras


Check if your code is calling openDevTools().

like image 20
Vadim Macagon Avatar answered Sep 19 '22 16:09

Vadim Macagon