Another fatal error
[friendica-addons.git/.git] / mathjax / mathjax.js
index 686f21b..6642ee2 100644 (file)
@@ -1,5 +1,3 @@
-Addon_registerHook("postprocess_liveupdate", "mathjax_postprocess_liveupdate");
-function mathjax_postprocess_liveupdate()
-{
-       MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
-}
+document.addEventListener('postprocess_liveupdate', function () {
+       MathJax.Hub.Queue(['Typeset', MathJax.Hub]);
+});