From 69af0141a19238ce719c6c867ed462b9a6dd1b76 Mon Sep 17 00:00:00 2001 From: Wliu <50Wliu@users.noreply.github.com> Date: Thu, 15 Feb 2018 18:35:50 -0500 Subject: [PATCH] :bug: params -> options --- src/application-delegate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)