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:
2hu 2023-10-17 22:41:53 +08:00 • committed by GitHub
parent 0b0862b20c
commit a1bcfa2479
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

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