now devtools will open undocked on new installs...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2021-05-02 23:27:09 +03:00
parent 45a620545d
commit 25154c4363
2 changed files with 4 additions and 3 deletions

View File

@ -136,8 +136,8 @@ function createWindow(){
function(){ WIN = null }) function(){ WIN = null })
// devtools for different windows... // devtools for different windows...
//WIN.webContents.openDevTools() //WIN.webContents.openDevTools({mode: 'undocked'})
//WIN.openDevTools() //WIN.openDevTools({mode: 'undocked'})
return WIN } return WIN }

View File

@ -63,7 +63,8 @@ if(window.require){
// electron... // electron...
} else { } else {
try{ try{
require('electron').remote.getCurrentWindow().openDevTools() require('electron').remote.getCurrentWindow()
.openDevTools({mode: 'undocked'})
} catch(err){ } } } catch(err){ } }
}, STARTUP_DEVTOOLS_TIMEOUT) } }, STARTUP_DEVTOOLS_TIMEOUT) }
</script> </script>