]> khamidou — GitHub mirrors - electron.git/commitdiff
Don't show open dialog as sheet in devtools
authorCheng Zhao <zcbenz@gmail.com>
Thu, 1 Oct 2015 06:46:33 +0000 (14:46 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 1 Oct 2015 06:46:33 +0000 (14:46 +0800)
atom/renderer/lib/inspector.coffee

index 126f68f9608e2023061a37e0e9e958c30aa10607..5f08a2acf8d89e0c1a11c65e26819ae38ea71e26 100644 (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) ->