Skip to content

Commit

Permalink
Self-hosting the twemoji script until I can get a replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
SebOuellette committed Jan 10, 2023
1 parent 24d71bd commit f56858b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dontOpenMe.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<script src="js/showEmbed.js" charset="utf-8"></script>
<script src="js/addMemberList.js" charset="utf-8"></script>
<script src="js/messageGeneration.js" charset="utf-8"></script>
<script src="https://twemoji.maxcdn.com/v/latest/twemoji.min.js"></script>
<script src="https://cdn.honeybeeks.net/twemoji.min.js"></script>
<script src="js/converter.js" charset="utf-8"></script>
<script src="js/typingStatus.js" charset="utf-8"></script>
<script src="js/rcMenuFuncs.js" charset="utf-8"></script>
Expand Down

1 comment on commit f56858b

@SebOuellette
Copy link
Owner Author

@SebOuellette SebOuellette commented on f56858b Jan 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could just package the script with LiveBot, but this way I can update the twemoji script from my web backend, and don't need to update LiveBot every time a new twemoji API update happens.

Why is this change happening at all? Maxcdn is now called Stackpath, and they are not hosting the twemoji CDN anymore. So, because at the time of writing, no new API has officially taken it's place and is not relying on maxcdn anyway. So, I'm hosting the min.js file, modified to point to https://jsdelivr.net/gh/tweitter/twemoji@14.0.2/assets/ for the images. This works, so it'll stay for a while :)

Please sign in to comment.