MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / formatDisplayFieldValue

Function formatDisplayFieldValue

devtools/modules/messageRenderer.js:385–391  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

383}
384
385function formatDisplayFieldValue(value) {
386 if (value === null) return 'null';
387 if (value === undefined) return '';
388 if (typeof value === 'string') return value;
389 if (typeof value === 'number' || typeof value === 'boolean') return String(value);
390 return JSON.stringify(value);
391}
392
393function setupJsonDetailEventDelegation() {
394 elements.detailJson.addEventListener('click', (e) => {

Callers 1

getMessageDisplayDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected