From: Cheng Zhao Date: Wed, 12 Nov 2014 07:51:48 +0000 (+0800) Subject: docs: "preload" option of BrowserWindow X-Git-Tag: v0.19.2~12^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=a3d2a490daecc799d3900db302fdf50c29042e20;p=electron.git docs: "preload" option of BrowserWindow --- diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 0a779098..222df14d 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