From a3d2a490daecc799d3900db302fdf50c29042e20 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 12 Nov 2014 15:51:48 +0800 Subject: [PATCH] docs: "preload" option of BrowserWindow --- docs/api/browser-window.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 0a779098100b..222df14dabc8 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -61,7 +61,11 @@ You can also create a window without chrome by using * `enable-larger-than-screen` Boolean - Enable the window to be resized larger than screen. * `dark-theme` Boolean - Forces using dark theme for the window, only works on - some GTK+3 desktop environments. + some GTK+3 desktop environments + * `preload` String - Specifies a script that will be loaded before other + scripts run in the window. This script will always have access to node APIs + no matter whether node integration is turned on for the window, and the path + of `preload` script has to be absolute path. * `web-preferences` Object - Settings of web page's features * `javascript` Boolean * `web-security` Boolean