MCPcopy Index your code
hub / github.com/massCodeIO/massCode / updateSourceRow

Function updateSourceRow

integrations/clipper/src/popup.ts:277–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275}
276
277function updateSourceRow(): void {
278 if (!currentPayload) {
279 return
280 }
281
282 const source = getSourceParts(currentPayload)
283
284 if (sourceTitle) {
285 sourceTitle.textContent = source.title
286 }
287
288 if (sourcePath) {
289 sourcePath.textContent = source.path
290 }
291
292 updateSourceIcon(currentPayload.faviconUrl)
293}
294
295function updatePreviewLabel(): void {
296 if (!previewLabel || !previewInput) {

Callers 1

initFunction · 0.85

Calls 2

getSourcePartsFunction · 0.85
updateSourceIconFunction · 0.85

Tested by

no test coverage detected