X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mathjax%2Fmathjax.js;h=6642ee29f234cdf9ea78ab8b9e95130908fc95be;hb=9497a598bbff935f60a804bcefdfea517891d7d7;hp=1ab5531bd4dffe5498323a230e028f5e7012806b;hpb=b5fe8d61dd14552d8e8673e79701ca1ba0850ea3;p=friendica-addons.git diff --git a/mathjax/mathjax.js b/mathjax/mathjax.js index 1ab5531b..6642ee29 100644 --- a/mathjax/mathjax.js +++ b/mathjax/mathjax.js @@ -1,5 +1,3 @@ -Addon_registerHook("postprocess","mathjax_postprocess_liveupdate"); -function mathjax_postprocess_liveupdate() -{ - MathJax.Hub.Queue(["Typeset",MathJax.Hub]); -} +document.addEventListener('postprocess_liveupdate', function () { + MathJax.Hub.Queue(['Typeset', MathJax.Hub]); +});