]> git.mxchange.org Git - friendica-addons.git/blobdiff - mathjax/mathjax.js
translations updates for 2023.03
[friendica-addons.git] / mathjax / mathjax.js
index 686f21bb5fb0ef117bcdcd23119279ac7be10771..6642ee29f234cdf9ea78ab8b9e95130908fc95be 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]);
+});