Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: twemoji is not defined #336

Closed
sentry-io bot opened this issue Feb 19, 2025 · 2 comments
Closed

ReferenceError: twemoji is not defined #336

sentry-io bot opened this issue Feb 19, 2025 · 2 comments
Assignees
Labels
bug Issue/PR related to an error, fault, or flaw. low priority Issue/PR is low priority.

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 19, 2025

Sentry Issue: WEBSITE-9C

ReferenceError: twemoji is not defined
  at None (/en-US/:1287:15)
@sentry-io sentry-io bot added bug Issue/PR related to an error, fault, or flaw. low priority Issue/PR is low priority. labels Feb 19, 2025
@carolinaisslaying
Copy link
Member

sentry suggested this, will have a look at the code later:

<script src="https://cdn.jsdelivr.net/npm/@twemoji/api@15.1.0/dist/twemoji.min.js" crossorigin="anonymous"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
    // Ensure twemoji is loaded
    if (typeof twemoji !== 'undefined') {
        twemoji.parse(document.body, {folder: 'svg', ext: '.svg'});
    } else {
        // Wait for script to load if it hasn't already
        window.addEventListener('load', function() {
            twemoji.parse(document.body, {folder: 'svg', ext: '.svg'});
        });
    }
});
</script>

@carolinaisslaying
Copy link
Member

Was an issue on cloudflare's end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue/PR related to an error, fault, or flaw. low priority Issue/PR is low priority.
Projects
None yet
Development

No branches or pull requests

1 participant