Browse Source

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

Samuel Attard 6 years ago
parent
commit
55a1f5d351
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/browser/objects-registry.js

+ 2 - 0
lib/browser/objects-registry.js

@@ -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