From: Cheng Zhao Date: Thu, 4 Jun 2015 14:42:36 +0000 (+0800) Subject: docs: Say more about page-visibility option X-Git-Tag: v0.27.3~8 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=129159c895bac9b35f1524d7f21b16dce57a7d26;p=electron.git docs: Say more about page-visibility option --- diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index a829e390..ab776698 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -97,8 +97,10 @@ You can also create a window without chrome by using * `shared-worker` Boolean * `direct-write` Boolean - Whether the DirectWrite font rendering system on Windows is enabled - * `page-visibility` Boolean - Sets the page visibility state - to visible, prevents throttling of DOM timers. + * `page-visibility` Boolean - Page would be forced to be always in visible + or hidden state once set, instead of reflecting current window's + visibility. Users can set it to `true` to prevent throttling of DOM + timers. Creates a new `BrowserWindow` with native properties set by the `options`. Usually you only need to set the `width` and `height`, other properties will