Keldos commited on
Commit
cf53b1c
·
1 Parent(s): a34f19b

Update assets/custom.js

Browse files
Files changed (1) hide show
  1. assets/custom.js +4 -4
assets/custom.js CHANGED
@@ -35,9 +35,9 @@ function gradioLoaded(mutations) {
35
  if (userInfoDiv) { // user_input_tb 加载出来了没?
36
  setTimeout(showOrHideUserInfo(), 2000);
37
  }
38
- if (chatbot) { // user_input_tb 加载出来了没?
39
  // setChatbotHeight()
40
- }
41
  }
42
  }
43
  }
@@ -224,6 +224,6 @@ window.addEventListener("DOMContentLoaded", function () {
224
  // }, 2000);
225
  // 本来是为了页面刷出来等两秒重试的,现在这么写不需要了~ 但框架先留着万一需要呢QAQ
226
  });
227
- window.addEventListener('resize', setChatbotHeight);
228
- window.addEventListener('scroll', setChatbotHeight);
229
  window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", adjustDarkMode);
 
35
  if (userInfoDiv) { // user_input_tb 加载出来了没?
36
  setTimeout(showOrHideUserInfo(), 2000);
37
  }
38
+ // if (chatbot) { // user_input_tb 加载出来了没?
39
  // setChatbotHeight()
40
+ // }
41
  }
42
  }
43
  }
 
224
  // }, 2000);
225
  // 本来是为了页面刷出来等两秒重试的,现在这么写不需要了~ 但框架先留着万一需要呢QAQ
226
  });
227
+ // window.addEventListener('resize', setChatbotHeight);
228
+ // window.addEventListener('scroll', setChatbotHeight);
229
  window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", adjustDarkMode);