about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPFM <info@eyesight.jp>2017-05-20 06:33:42 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-19 23:33:42 +0200
commit7eb8b2efad3898f9cc28d942a34e5e483ead5193 (patch)
tree051c1c2ba2db9ee2ba64c82521074584592ff1d5
parentb6f6152e263cdf12f61f9ae3d65c351a4dec7c61 (diff)
Fix JavaScript error (#3153)
JavaScript error at Safari 10.1(macOS 10.12.4) / iPhone Safari(iOS 10.3.2)
-rw-r--r--app/javascript/packs/public.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/packs/public.js b/app/javascript/packs/public.js
index e392bad18..3bd7d7cf0 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);
   }