From 63989b2be8dbe0224460e1763c75f99bd509b5ec Mon Sep 17 00:00:00 2001 From: 2hu Date: Tue, 17 Oct 2023 22:41:53 +0800 Subject: [PATCH] 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 --- CHANGELOG.md | 1 + src/util/isPlainObject.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d15cc9c1fe0a..1900c9f99a5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) ## [3.3.3] - 2023-07-13 diff --git a/src/util/isPlainObject.js b/src/util/isPlainObject.js index 7563f3218fcd..6bd031abd90e 100644 --- a/src/util/isPlainObject.js +++ b/src/util/isPlainObject.js @@ -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 }