From 23d2dc5007e565a32b451bb0d4f6f4b438219af3 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 22 May 2014 23:58:02 +0800 Subject: [PATCH] :memo: Document the 'web-preferences' option. --- docs/api/browser-window.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 384b6e2a..0d6b1af3 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -51,6 +51,18 @@ You can also create a window without chrome by using `manual-enable-iframe` or `disable`. * `accept-first-mouse` Boolean - Whether the web view accepts a single mouse-down event that simultaneously activates the window + * `web-preferences` Object - Settings of web page's features + * `javascript` Boolean + * `web-security` Boolean + * `images` Boolean + * `java` Boolean + * `text-areas-are-resizable` Boolean + * `webgl` Boolean + * `webaudio` Boolean + * `accelerated-compositing` Boolean + * `plugins` Boolean + * `extra-plugin-dirs` Array - Array of paths that would be searched for + plugins. Creates a new `BrowserWindow` with native properties set by the `options`. Usually you only need to set the `width` and `height`, other properties will -- 2.43.0