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

Function getName

ChatGPT/src-tauri/src/scripts/export.js:211–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209 }
210
211 function getName() {
212 const id = window.crypto.getRandomValues(new Uint32Array(1))[0].toString(36);
213 const name = document.querySelector('nav .overflow-y-auto a.hover\\:bg-gray-800')?.innerText?.trim() || '';
214 return { filename: name ? name : id, id, pathname: 'chat.download.json' };
215 }
216
217 class Elements {
218 constructor() {

Callers 4

ChatLayoutFunction · 0.85
exportMarkdownFunction · 0.85
handleImgFunction · 0.85
handlePdfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected