pavlobu / deskreen

Deskreen turns any device with a web browser into a secondary screen for your computer. ⭐️ Star to support our work!
https://deskreen.com
GNU Affero General Public License v3.0
17.54k stars 961 forks source link

Allowing webdev tools to be opened #209

Open ferrlen opened 2 years ago

ferrlen commented 2 years ago

Would it be possible to allow the Electron dev console to be used in Deskreen? This might make it much easier to debug issues (or, for example, to remove the "No Wifi or Lan connection" prompt that is blocking the app in many bug reports). Since this comes for free with an Electron app, it'd be great if the console could be activated by the user.

I thought it was on by default, but if it needs to be added it could be as simple as:

mainWindow.webContents.openDevTools();
// or to add it as a top menu option
mainWindow.setMenu(theMenuGoesHere)

Thanks a lot for the great work with Deskreen!