Skip to content

Commit a1bcfa2

Browse files
2hu12thecrypticace
andauthored
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 <[email protected]>
1 parent 0b0862b commit a1bcfa2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2727
- Fix sorting of utilities that share multiple candidates ([#12173](https://github.com/tailwindlabs/tailwindcss/pull/12173))
2828
- Ensure variants with arbitrary values and a modifier are correctly matched in the RegEx based parser ([#12179](https://github.com/tailwindlabs/tailwindcss/pull/12179))
2929
- Fix crash when watching renamed files on FreeBSD ([#12193](https://github.com/tailwindlabs/tailwindcss/pull/12193))
30+
- Allow plugins from a parent document to be used in an iframe ([#12208](https://github.com/tailwindlabs/tailwindcss/pull/12208))
3031

3132
### Added
3233

src/util/isPlainObject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export default function isPlainObject(value) {
44
}
55

66
const prototype = Object.getPrototypeOf(value)
7-
return prototype === null || prototype === Object.prototype
7+
return prototype === null || Object.getPrototypeOf(prototype) === null
88
}

0 commit comments

Comments
 (0)