fix: add a hidden option to disable remote dereferencing (#14113)
This commit is contained in:
parent
daf23288bc
commit
2642e064a2
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,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…
Reference in a new issue