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 })
// devtools for different windows...
//WIN.webContents.openDevTools()
//WIN.openDevTools()
//WIN.webContents.openDevTools({mode: 'undocked'})
//WIN.openDevTools({mode: 'undocked'})
return WIN }

View File

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