-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Description
Is there an alternative cdn? Max cdn has shut down and https://twemoji.maxcdn.com/v/latest/twemoji.min.js is down as well.
@WebReflection amend
User-land Solution
twemoji.parse(
document.body,
{ base: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/' }
)
What is going on?
MaxCDN doesn't exist anymore and we had it hard coded as default option but that was never meant to be the only CDN able to serve twemoji so that you can simply specify a base
field as option to parse with a different CDN or wait for the new package to be deployed on npm (📣 the new package is called @twemoji/api
and has been already deployed) and use the new hard coded default. The lesson to learn here is that some CDN might not be there forever, so it's always good to know there are escape hatches within the code, like it is for twemoji.
📣 New Package Details
Max-Dbv, Xstoudi, ElMehdiBouamama, AlexandreRivet, huntercaron and 56 moresamber, honzabilek4 and phpvodkloun, clementmas, simonemargio and foxdie987