Polyfill to make map work on old browsers

This commit is contained in:
Edward Betts 2024-01-16 09:00:03 +00:00
parent b061262120
commit c6cc3fc558

View file

@ -1,3 +1,7 @@
if (![].at) {
Array.prototype.at = function(pos) { return this.slice(pos, pos + 1)[0] }
}
function emoji_icon(emoji) {
var iconStyle = "<div style='background-color: white; border-radius: 50%; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; border: 1px solid black;'> <div style='font-size: 18px;'>" + emoji + "</div></div>";