Skip to content

Commit

Permalink
Allow plugins from a parent document to be used in an iframe (#12208)
Browse files Browse the repository at this point in the history
* Fix cross iframe isPlainObject check

* Update changelog

---------

Co-authored-by: Jordan Pittman <[email protected]>
  • Loading branch information
2hu12 and thecrypticace authored Oct 17, 2023
1 parent 0b0862b commit a1bcfa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix sorting of utilities that share multiple candidates ([#12173](https://github.com/tailwindlabs/tailwindcss/pull/12173))
- Ensure variants with arbitrary values and a modifier are correctly matched in the RegEx based parser ([#12179](https://github.com/tailwindlabs/tailwindcss/pull/12179))
- Fix crash when watching renamed files on FreeBSD ([#12193](https://github.com/tailwindlabs/tailwindcss/pull/12193))
- Allow plugins from a parent document to be used in an iframe ([#12208](https://github.com/tailwindlabs/tailwindcss/pull/12208))

### Added

Expand Down
2 changes: 1 addition & 1 deletion src/util/isPlainObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit a1bcfa2

Please sign in to comment.