MCPcopy Create free account
hub / github.com/dataease/SQLBot / getCookie

Function getCookie

frontend/public/assistant.js:525–538  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

523 }
524 }
525 function getCookie(key) {
526 if (!key || !document.cookie) {
527 return null
528 }
529 const cookies = document.cookie.split(';')
530 for (let i = 0; i < cookies.length; i++) {
531 const cookie = cookies[i].trim()
532
533 if (cookie.startsWith(key + '=')) {
534 return decodeURIComponent(cookie.substring(key.length + 1))
535 }
536 }
537 return null
538 }
539 function registerMessageEvent(id, data) {
540 const iframe = document.getElementById(`sqlbot-assistant-chat-iframe-${id}`)
541 const url = iframe.src

Callers 1

formatCertificateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected