Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
as-com committed Aug 23, 2016
1 parent 9d0eff0 commit 0aa3bdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function katex_rubber() {
global $katex_using;
if ($katex_using) {
?>
<script>!function(){"use strict";var t=document.querySelectorAll("script[type='text/katex']");Array.prototype.forEach.call(t,function(t,e){var r={displayMode:"true"===t.getAttribute("data-display"),throwOnError:!1},a=document.createElement("span");try{katex.render(t.textContent,a,r)}catch(o){t.style.color="red",t.textContent=o.message}t.parentNode.replaceChild(a,t)})}();</script>
<script>!function(){"use strict";var t=document.querySelectorAll("script[type='text/katex']");Array.prototype.forEach.call(t,function(t,e){var r={displayMode:"true"===t.getAttribute("data-display"),throwOnError:!1},a=document.createElement("span");try{katex.render(t.textContent,a,r)}catch(o){a.style.color="red",a.textContent=o.message}t.parentNode.replaceChild(a,t)})}();</script>
<?php
}
}
Expand Down
4 changes: 2 additions & 2 deletions scripts/render-stub.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
try {
katex.render(el.textContent, eq, options);
} catch (e) {
el.style.color = "red";
el.textContent = e.message;
eq.style.color = "red";
eq.textContent = e.message;
}
el.parentNode.replaceChild(eq, el);
});
Expand Down

0 comments on commit 0aa3bdf

Please sign in to comment.