From: Cheng Zhao Date: Thu, 1 Oct 2015 06:46:33 +0000 (+0800) Subject: Don't show open dialog as sheet in devtools X-Git-Tag: v0.33.4~5^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ef4014e14b9344204eb0f9636cbcf0af0c284cc2;p=electron.git Don't show open dialog as sheet in devtools --- diff --git a/atom/renderer/lib/inspector.coffee b/atom/renderer/lib/inspector.coffee index 126f68f9..5f08a2ac 100644 --- a/atom/renderer/lib/inspector.coffee +++ b/atom/renderer/lib/inspector.coffee @@ -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) ->