chore: remove deprecated modules internally using remote.require in sandboxed renderer context (#15957)

This commit is contained in:
Milan Burda 2019-01-24 19:53:52 +01:00 committed by Shelley Vohr
parent fef262f829
commit 713df08e3e
5 changed files with 1 additions and 27 deletions

View file

@ -2,14 +2,11 @@
> Retrieve information about screen size, displays, cursor position, etc.
Process: [Main](../glossary.md#main-process), [Renderer](../glossary.md#renderer-process)
Process: [Main](../glossary.md#main-process)
You cannot require or use this module until the `ready` event of the `app`
module is emitted.
In the renderer process context it depends on the [`remote`](remote.md) module,
it is therefore not available when this module is disabled.
`screen` is an [EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter).
**Note:** In the renderer / DevTools, `window.screen` is a reserved DOM