diff --git a/app/javascript/packs/public.js b/app/javascript/packs/public.js index e392bad186..3bd7d7cf05 100644 --- a/app/javascript/packs/public.js +++ b/app/javascript/packs/public.js @@ -46,7 +46,7 @@ const parseFormat = (format) => format.replace(/%(\w)/g, (_, modifier) => { }); document.addEventListener('DOMContentLoaded', () => { - for (const content of document.getElementsByClassName('emojify')) { + for (const content of document.querySelectorAll('.emojify')) { content.innerHTML = emojify(content.innerHTML); }