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

Function updateSourceIcon

integrations/clipper/src/popup.ts:351–365  ·  view source on GitHub ↗
(faviconUrl?: string)

Source from the content-addressed store, hash-verified

349}
350
351function updateSourceIcon(faviconUrl?: string): void {
352 if (!sourceMark) {
353 return
354 }
355
356 sourceMark.textContent = ''
357
358 if (!faviconUrl) {
359 sourceMark.textContent = 'M'
360 sourceMark.style.backgroundImage = ''
361 return
362 }
363
364 sourceMark.style.backgroundImage = `url("${faviconUrl}")`
365}
366
367function getCaptureButtonLabel(target: CaptureTarget): string {
368 return target === 'code'

Callers 1

updateSourceRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected