diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index a48e8dd60119..d9b47d055528 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -134,6 +134,7 @@ struct Converter { case NEW_FOREGROUND_TAB: disposition = "foreground-tab"; break; case NEW_BACKGROUND_TAB: disposition = "background-tab"; break; case NEW_POPUP: case NEW_WINDOW: disposition = "new-window"; break; + case SAVE_TO_DISK: disposition = "save-to-disk"; break; default: break; } return mate::ConvertToV8(isolate, disposition); diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 47aa43bcddfe..55cbfc63c33f 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -144,7 +144,7 @@ Returns: * `url` String * `frameName` String * `disposition` String - Can be `default`, `foreground-tab`, `background-tab`, - `new-window` and `other`. + `new-window`, `save-to-disk` and `other`. * `options` Object - The options which will be used for creating the new `BrowserWindow`. diff --git a/docs/api/web-view-tag.md b/docs/api/web-view-tag.md index bda4858e85f7..61f0ebd655ab 100644 --- a/docs/api/web-view-tag.md +++ b/docs/api/web-view-tag.md @@ -670,7 +670,7 @@ Returns: * `url` String * `frameName` String * `disposition` String - Can be `default`, `foreground-tab`, `background-tab`, - `new-window` and `other`. + `new-window`, `save-to-disk` and `other`. * `options` Object - The options which should be used for creating the new `BrowserWindow`.