From c6cc3fc558f8ccc014c547bfccc73d8c49103491 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 16 Jan 2024 09:00:03 +0000 Subject: [PATCH] Polyfill to make map work on old browsers --- static/js/map.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/map.js b/static/js/map.js index c01d3c7..7410379 100644 --- a/static/js/map.js +++ b/static/js/map.js @@ -1,3 +1,7 @@ +if (![].at) { + Array.prototype.at = function(pos) { return this.slice(pos, pos + 1)[0] } +} + function emoji_icon(emoji) { var iconStyle = "
" + emoji + "
";