fix: add a hidden option to disable remote dereferencing (#14102)
This commit is contained in:
parent
7ff17ee3ad
commit
55a1f5d351
1 changed files with 2 additions and 0 deletions
|
@ -87,6 +87,8 @@ class ObjectsRegistry {
|
||||||
|
|
||||||
// Private: Dereference the object from store.
|
// Private: Dereference the object from store.
|
||||||
dereference (id) {
|
dereference (id) {
|
||||||
|
if (process.env.ELECTRON_DISABLE_REMOTE_DEREFERENCING) return
|
||||||
|
|
||||||
let pointer = this.storage[id]
|
let pointer = this.storage[id]
|
||||||
if (pointer == null) {
|
if (pointer == null) {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue