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

This commit is contained in:
trop[bot] 2018-08-15 08:44:23 -07:00 committed by Samuel Attard
parent daf23288bc
commit 2642e064a2

View file

@ -83,6 +83,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