emoji-picker-element
Advanced tools
Comparing version 1.18.2 to 1.18.3
@@ -675,2 +675,4 @@ function assertNonEmptyString (str) { | ||
const isFirefoxContentScript = typeof wrappedJSObject !== 'undefined'; | ||
// remove some internal implementation details, i.e. the "tokens" array on the emoji object | ||
@@ -682,2 +684,8 @@ // essentially, convert the emoji from the version stored in IDB to the version used in-memory | ||
} | ||
// if inside a Firefox content script, need to clone the emoji object to prevent Firefox from complaining about | ||
// cross-origin object. See: https://github.com/nolanlawson/emoji-picker-element/issues/356 | ||
/* istanbul ignore if */ | ||
if (isFirefoxContentScript) { | ||
emoji = structuredClone(emoji); | ||
} | ||
delete emoji.tokens; | ||
@@ -684,0 +692,0 @@ if (emoji.skinTones) { |
{ | ||
"name": "emoji-picker-element", | ||
"version": "1.18.2", | ||
"version": "1.18.3", | ||
"description": "Lightweight emoji picker distributed as a web component", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
927756
6501