diff --git a/src/application-delegate.js b/src/application-delegate.js index f0be70a11..7d90da792 100644 --- a/src/application-delegate.js +++ b/src/application-delegate.js @@ -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)