mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-03 12:50:09 +00:00
fixed a stupid bug with runSystem(...) -- node-webkit...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b343f0f6ff
commit
948abeaa85
@ -59,16 +59,20 @@ if(window.CEF_dumpJSON != null){
|
|||||||
// XXX will this work on Mac???
|
// XXX will this work on Mac???
|
||||||
path = path.replace(fp, '')
|
path = path.replace(fp, '')
|
||||||
}
|
}
|
||||||
return proc.exec(path)
|
return proc.exec('"'+path+'"', function(error, stdout, stderr){
|
||||||
|
if(error != null){
|
||||||
|
console.error(stderr)
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// XXX use a real toggler...
|
|
||||||
window.toggleFullscreenMode = createCSSClassToggler(
|
window.toggleFullscreenMode = createCSSClassToggler(
|
||||||
document.body,
|
document.body,
|
||||||
'.full-screen-mode',
|
'.full-screen-mode',
|
||||||
function(action){
|
function(action){
|
||||||
gui.Window.get().toggleFullscreen()
|
gui.Window.get().toggleFullscreen()
|
||||||
})
|
})
|
||||||
|
|
||||||
window.closeWindow = function(){
|
window.closeWindow = function(){
|
||||||
gui.Window.get().close()
|
gui.Window.get().close()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user