Merge pull request #16756 from atom/wl-params-to-options

Fix incorrect variable name
This commit is contained in:
Wliu
2018-02-15 20:05:44 -05:00
committed by GitHub

View File

@@ -249,7 +249,7 @@ class ApplicationDelegate {
this.getCurrentWindow().showSaveDialog(options, callback)
} else {
// Sync
if (typeof params === 'string') {
if (typeof options === 'string') {
options = {defaultPath: options}
}
return this.getCurrentWindow().showSaveDialog(options)