Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
Created December 18, 2020 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nolanlawson/dbbd58202d4e893a82b263f8c5ef273a to your computer and use it in GitHub Desktop.
Save nolanlawson/dbbd58202d4e893a82b263f8c5ef273a to your computer and use it in GitHub Desktop.
repro emoji-picker-element issue
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Repro emoji picker element issue</title>
</head>
<body>
<script type="module" src="https://cdn.jsdelivr.net/npm/emoji-picker-element@^1/index.js"></script>
<emoji-picker>
</emoji-picker>
<script type="module">
document.querySelector('emoji-picker').customEmoji = [
{
name: 'Firefox',
shortcodes: ['firefox'],
url: 'https://raw.githubusercontent.com/alrra/browser-logos/main/src/firefox/firefox_64x64.png'
}
]
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment