MCPcopy Create free account
hub / github.com/NsLearning/LangHelper / initDom

Function initDom

ChatGPT/src-tauri/src/scripts/cmd.js:304–314  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

302}
303
304function initDom() {
305 const modelDom = document.querySelector('.chat-model-cmd-list');
306 if (modelDom) {
307 modelDom.innerHTML = '';
308 }
309 delete window.__CHAT_MODEL_CMD_PROMPT__;
310 delete window.__CHAT_MODEL_CMD__;
311 delete window.__CHAT_MODEL_STATUS__;
312 delete window.__cmd_list;
313 delete window.__cmd_index;
314}
315
316if (
317 document.readyState === "complete" ||

Callers 5

initFunction · 0.85
cmdTipFunction · 0.85
renderListFunction · 0.85
cmdKeydownFunction · 0.85
cmdInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected