]> khamidou — GitHub mirrors - electron.git/commitdiff
docs: Say more about page-visibility option
authorCheng Zhao <zcbenz@gmail.com>
Thu, 4 Jun 2015 14:42:36 +0000 (22:42 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 4 Jun 2015 14:42:36 +0000 (22:42 +0800)
docs/api/browser-window.md

index a829e390ae9787bb6db07aad23c64135442ad237..ab7766981dc99f2f343121ca8a8683f9ca842478 100644 (file)
@@ -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