mirror of
https://github.com/electron/electron.git
synced 2026-01-24 23:08:10 -05:00
Don't show open dialog as sheet in devtools
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user