Keldos commited on
Commit
31955a6
·
1 Parent(s): 2a53137

chore: 移除调试用的控制台输出

Browse files
Files changed (1) hide show
  1. assets/custom.js +5 -5
assets/custom.js CHANGED
@@ -227,11 +227,11 @@ function renderMathJax() {
227
  if (!mathJaxSpan && shouldRenderLatex && !mathjaxUpdated) {
228
  MathJax.Hub.Queue(["Typeset", MathJax.Hub, messageBotDivs[i]]);
229
  rendertime +=1; // for debugging
230
- console.log("renderingMathJax", i)
231
  }
232
  }
233
  mathjaxUpdated = true;
234
- console.log("MathJaxTriedToRender!!!")
235
  }
236
 
237
  function removeMathjax() {
@@ -243,18 +243,18 @@ function removeMathjax() {
243
  // }
244
  // 我真的不会了啊啊啊,mathjax并没有提供转换为原先文本的办法。
245
  mathjaxUpdated = true;
246
- console.log("MathJax removed!");
247
  }
248
 
249
  function updateMathJax() {
250
  renderLatex.addEventListener("change", function() {
251
  shouldRenderLatex = renderLatex.checked;
252
- console.log(shouldRenderLatex)
253
  if (!mathjaxUpdated) {
254
  if (shouldRenderLatex) {
255
  renderMathJax();
256
  } else {
257
- console.log("取消渲染!")
258
  removeMathjax();
259
  }
260
  } else {
 
227
  if (!mathJaxSpan && shouldRenderLatex && !mathjaxUpdated) {
228
  MathJax.Hub.Queue(["Typeset", MathJax.Hub, messageBotDivs[i]]);
229
  rendertime +=1; // for debugging
230
+ // console.log("renderingMathJax", i)
231
  }
232
  }
233
  mathjaxUpdated = true;
234
+ console.log("MathJax Rendered")
235
  }
236
 
237
  function removeMathjax() {
 
243
  // }
244
  // 我真的不会了啊啊啊,mathjax并没有提供转换为原先文本的办法。
245
  mathjaxUpdated = true;
246
+ // console.log("MathJax removed!");
247
  }
248
 
249
  function updateMathJax() {
250
  renderLatex.addEventListener("change", function() {
251
  shouldRenderLatex = renderLatex.checked;
252
+ // console.log(shouldRenderLatex)
253
  if (!mathjaxUpdated) {
254
  if (shouldRenderLatex) {
255
  renderMathJax();
256
  } else {
257
+ console.log("MathJax Disabled")
258
  removeMathjax();
259
  }
260
  } else {