ziyuzhou02 commited on
Commit
b35c571
·
verified ·
1 Parent(s): 4aa1389

Fix black screen: remove MutationObserver freeze

Browse files
Files changed (1) hide show
  1. src/display/css_html_js.py +0 -10
src/display/css_html_js.py CHANGED
@@ -119,16 +119,6 @@ def eval_countdown_head_js() -> str:
119
  function boot() {
120
  tick();
121
  startInterval();
122
- if (window.__tsfmEvalCountdownObserver) return;
123
- window.__tsfmEvalCountdownObserver = new MutationObserver(function () {
124
- if (document.getElementById("tsfm-eval-countdown")) {
125
- tick();
126
- }
127
- });
128
- window.__tsfmEvalCountdownObserver.observe(document.body, {
129
- childList: true,
130
- subtree: true,
131
- });
132
  }
133
 
134
  if (document.readyState === "loading") {
 
119
  function boot() {
120
  tick();
121
  startInterval();
 
 
 
 
 
 
 
 
 
 
122
  }
123
 
124
  if (document.readyState === "loading") {