Index: inject.preload.js |
=================================================================== |
--- a/inject.preload.js |
+++ b/inject.preload.js |
@@ -174,8 +174,11 @@ |
{ |
for (let name of properties) |
{ |
- Object.defineProperty(dest, name, |
- Object.getOwnPropertyDescriptor(src, name)); |
+ if (src.hasOwnProperty(name)) |
+ { |
+ Object.defineProperty(dest, name, |
+ Object.getOwnPropertyDescriptor(src, name)); |
+ } |
} |
} |