mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
now devtools will open undocked on new installs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
45a620545d
commit
25154c4363
@ -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 }
|
||||||
|
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user