You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`dontAddToRecent`_Windows_ - Do not add the item being saved to the recent documents list.
175
175
*`securityScopedBookmarks` boolean (optional) _macOS__mas_ - Create a [security scoped bookmark](https://developer.apple.com/library/content/documentation/Security/Conceptual/AppSandboxDesignGuide/AppSandboxInDepth/AppSandboxInDepth.html#//apple_ref/doc/uid/TP40011183-CH3-SW16) when packaged for the Mac App Store. If this option is enabled and the file doesn't already exist a blank file will be created at the chosen path.
176
176
177
-
Returns `string | undefined`, the path of the file chosen by the user; if the dialog is cancelled it returns `undefined`.
177
+
Returns `string`, the path of the file chosen by the user; if the dialog is cancelled it returns an empty string.
178
178
179
179
The `browserWindow` argument allows the dialog to attach itself to a parent window, making it modal.
180
180
@@ -207,7 +207,7 @@ The `filters` specifies an array of file types that can be displayed, see
207
207
Returns `Promise<Object>` - Resolve with an object containing the following:
208
208
209
209
*`canceled` boolean - whether or not the dialog was canceled.
210
-
*`filePath` string (optional) - If the dialog is canceled, this will be `undefined`.
210
+
*`filePath` string - If the dialog is canceled, this will be an empty string.
211
211
*`bookmark` string (optional) _macOS__mas_ - Base64 encoded string which contains the security scoped bookmark data for the saved file. `securityScopedBookmarks` must be enabled for this to be present. (For return values, see [table here](#bookmarks-array).)
212
212
213
213
The `browserWindow` argument allows the dialog to attach itself to a parent window, making it modal.
0 commit comments