visibilityState

A string representing the visibility state of the frame.

See also how the Page Visibility API is affected by other Electron APIs.