]> git.mxchange.org Git - friendica-addons.git/blobdiff - mathjax/mathjax.js
#8374: Removed wrapper from css
[friendica-addons.git] / mathjax / mathjax.js
index 1ab5531bd4dffe5498323a230e028f5e7012806b..6642ee29f234cdf9ea78ab8b9e95130908fc95be 100644 (file)
@@ -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]);
+});