Polyfill to make map work on old browsers
This commit is contained in:
parent
b061262120
commit
c6cc3fc558
|
@ -1,3 +1,7 @@
|
||||||
|
if (![].at) {
|
||||||
|
Array.prototype.at = function(pos) { return this.slice(pos, pos + 1)[0] }
|
||||||
|
}
|
||||||
|
|
||||||
function emoji_icon(emoji) {
|
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>";
|
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>";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue