diff --git a/lib/browser/objects-registry.js b/lib/browser/objects-registry.js index c6afe2616153..3fb0923df10d 100644 --- a/lib/browser/objects-registry.js +++ b/lib/browser/objects-registry.js @@ -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