fix: multiple has-jax in classlist

This commit is contained in:
joyqat 2020-08-07 16:53:36 +08:00
parent 4f3acae640
commit 5420b79421
1 changed files with 3 additions and 1 deletions

View File

@ -498,7 +498,9 @@
// ============================ mathjax ============================
document.querySelectorAll("mjx-container").forEach(function (x) {
x.parentElement.classList += 'has-jax'
if(!x.parentElement.classList.contains('has-jax')) {
x.parentElement.classList += 'has-jax';
}
});
// =================================================================