mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
chore: remove deprecated modules internally using remote.require in sandboxed renderer context (#15957)
This commit is contained in:
committed by
Shelley Vohr
parent
fef262f829
commit
713df08e3e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user