Don't show open dialog as sheet in devtools

This commit is contained in:
Cheng Zhao 2015-10-01 14:46:33 +08:00
parent ca40ea8e2f
commit ef4014e14b

View file

@ -44,7 +44,7 @@ createMenu = (x, y, items, document) ->
showFileChooserDialog = (callback) ->
remote = require 'remote'
dialog = remote.require 'dialog'
files = dialog.showOpenDialog remote.getCurrentWindow(), null
files = dialog.showOpenDialog {}
callback pathToHtml5FileObject files[0] if files?
pathToHtml5FileObject = (path) ->