twitter / twemoji

Emoji for everyone. https://twemoji.twitter.com/
MIT License
16.83k stars 1.85k forks source link

New CDN doesn't seem to work #613

Open nemorosus opened 1 year ago

nemorosus commented 1 year ago

I can't get Twemoji to work, it appears that MaxCDN doesn't host the files anymore?

For example this script: https://unpkg.com/twemoji@14.0.2/dist/twemoji.min.js

leads to this URL: https://twemoji.maxcdn.com/v/14.0.2/

However I didn't find anything there, under any version. All dead links. :(

Any solution, or I'm doing something wrong?

Thanks!

huntercaron commented 1 year ago

I believe maxcdn closed down a while back, we've switched to using https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/ as our base URL for everything and it works now

nemorosus commented 1 year ago

Thanks for the reply, however I still can't seem to get it working.

For example when I'm trying to open/access this URL I get a 404: https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/twemoji.min.js

It seems older versions are working, for example 12.0.4, however that leaves me with another issue, for example this URL: https://cdnjs.cloudflare.com/ajax/libs/twemoji/12.0.4/twemoji.min.js

The CDN referred within the JS file is still maxcdn.com, for a newbie like me, could I ask how you made it work? I am looking hardly to get the flag emojis working on my websites, if I can't make it work, I'll just self-host it at the end, but you got my curiosity if there's any chance of figuring this out.

Thanks!