fix: add a hidden option to disable remote dereferencing (#14102)

This commit is contained in:
Samuel Attard 2018-08-15 08:08:14 -07:00 committed by Charles Kerr
parent 7ff17ee3ad
commit 55a1f5d351

View file

@ -87,6 +87,8 @@ class ObjectsRegistry {
// Private: Dereference the object from store.
dereference (id) {
if (process.env.ELECTRON_DISABLE_REMOTE_DEREFERENCING) return
let pointer = this.storage[id]
if (pointer == null) {
return