@electron/remote
Advanced tools
Comparing version 2.0.9 to 2.0.10
@@ -48,3 +48,3 @@ "use strict"; | ||
const features = get_electron_binding_1.getElectronBinding('features'); | ||
if (!features || features.isDesktopCapturerEnabled()) { | ||
if (!features || !features.isDesktopCapturerEnabled || features.isDesktopCapturerEnabled()) { | ||
exports.browserModuleNames.push('desktopCapturer'); | ||
@@ -51,0 +51,0 @@ } |
{ | ||
"name": "@electron/remote", | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"main": "renderer/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
# @electron/remote | ||
[![CircleCI build status](https://circleci.com/gh/electron/remote/tree/main.svg?style=shield)](https://circleci.com/gh/electron/remote/tree/main) | ||
[![npm version](http://img.shields.io/npm/v/@electron/remote.svg)](https://npmjs.org/package/@electron/remote) | ||
`@electron/remote` is an [Electron](https://electronjs.org) module that bridges | ||
@@ -10,3 +13,3 @@ JavaScript objects from the main process to the renderer process. This lets you | ||
> pitfalls][remote-considered-harmful]. There is almost always a better way to | ||
> accomplish your task than using this module. For example, [`ipcRenderer.invoke`](https://www.electronjs.org/docs/api/ipc-renderer#ipcrendererinvokechannel-args) can serve many common use cases. | ||
> accomplish your task than using this module. For example, [`ipcRenderer.invoke`](https://www.electronjs.org/docs/latest/api/ipc-renderer#ipcrendererinvokechannel-args) can serve many common use cases. | ||
@@ -93,4 +96,4 @@ `@electron/remote` is a replacement for the built-in `remote` module in | ||
In `electron < 14.0.0` the remote module can be disabled for security reasons in the following contexts: | ||
- [`BrowserWindow`](browser-window.md) - by setting the `enableRemoteModule` option to `false`. | ||
- [`<webview>`](webview-tag.md) - by setting the `enableremotemodule` attribute to `false`. | ||
- [`BrowserWindow`](https://www.electronjs.org/docs/latest/api/browser-window) - by setting the `enableRemoteModule` option to `false`. | ||
- [`<webview>`](https://www.electronjs.org/docs/latest/api/webview-tag) - by setting the `enableremotemodule` attribute to `false`. | ||
@@ -347,2 +350,2 @@ ## Remote Objects | ||
[enumerable-properties]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties | ||
[remote-considered-harmful]: https://medium.com/@nornagon/electrons-remote-module-considered-harmful-70d69500f31 | ||
[remote-considered-harmful]: https://medium.com/@nornagon/electrons-remote-module-considered-harmful-70d69500f31 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70899
349