X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mathjax%2Fmathjax.js;h=6642ee29f234cdf9ea78ab8b9e95130908fc95be;hb=9497a598bbff935f60a804bcefdfea517891d7d7;hp=686f21bb5fb0ef117bcdcd23119279ac7be10771;hpb=fd894984cf3692e682034f410e11553aa970c9cd;p=friendica-addons.git diff --git a/mathjax/mathjax.js b/mathjax/mathjax.js index 686f21bb..6642ee29 100644 --- a/mathjax/mathjax.js +++ b/mathjax/mathjax.js @@ -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]); +});