Fix JavaScript error (#3153)

JavaScript error at Safari 10.1(macOS 10.12.4) / iPhone Safari(iOS 10.3.2)
lolsob-rspec
PFM 2017-05-20 06:33:42 +09:00 committed by Eugen Rochko
parent c3f8cd26c7
commit 27fc0ba24e
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ const parseFormat = (format) => format.replace(/%(\w)/g, (_, modifier) => {
}); });
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
for (const content of document.getElementsByClassName('emojify')) { for (const content of document.querySelectorAll('.emojify')) {
content.innerHTML = emojify(content.innerHTML); content.innerHTML = emojify(content.innerHTML);
} }