From c4576463e2fa5771765a4048cadbda0c53f11b45 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 4 Oct 2016 14:41:37 +0900 Subject: [PATCH] Format the docs according to style guide --- docs/api/web-contents.md | 3 ++- docs/api/window-open.md | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 29bdc05a6ad..ec1003f2d89 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -147,7 +147,8 @@ Returns: `new-window`, `save-to-disk` and `other`. * `options` Object - The options which will be used for creating the new `BrowserWindow`. -* `additional_features` Array - The non-standard features (features not handled by Chromium or Electron) given to `window.open()`. +* `additionalFeatures` Array - The non-standard features (features not handled + by Chromium or Electron) given to `window.open()`. Emitted when the page requests to open a new window for a `url`. It could be requested by `window.open` or an external link like ``. diff --git a/docs/api/window-open.md b/docs/api/window-open.md index 1e51d6b79a9..cbe3aed2302 100644 --- a/docs/api/window-open.md +++ b/docs/api/window-open.md @@ -26,9 +26,11 @@ The `features` string follows the format of standard browser, but each feature has to be a field of `BrowserWindow`'s options. **Notes:** -* Node integration will always be disabled in the opened `window` if it -is disabled on the parent window. -* Non-standard features (that are not handled by Chromium or Electron such `this-is-not-a-standard-feature`) given in features will be passed to any registered `webContent`'s `new-window` event handler in the `additional_features` argument. +* Node integration will always be disabled in the opened `window` if it is + disabled on the parent window. +* Non-standard features (that are not handled by Chromium or Electron) given in + `features` will be passed to any registered `webContent`'s `new-window` event + handler in the `additionalFeatures` argument. ### `window.opener.postMessage(message, targetOrigin)`