Allow plugins from a parent document to be used in an iframe (#12208)
* Fix cross iframe isPlainObject check * Update changelog --------- Co-authored-by: Jordan Pittman <jordan@cryptica.me>
This commit is contained in:
parent
0b0862b20c
commit
a1bcfa2479
2 changed files with 2 additions and 1 deletions
|
|
@ -4,5 +4,5 @@ export default function isPlainObject(value) {
|
|||
}
|
||||
|
||||
const prototype = Object.getPrototypeOf(value)
|
||||
return prototype === null || prototype === Object.prototype
|
||||
return prototype === null || Object.getPrototypeOf(prototype) === null
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue