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

Function updatePreviewLabel

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

Source from the content-addressed store, hash-verified

293}
294
295function updatePreviewLabel(): void {
296 if (!previewLabel || !previewInput) {
297 return
298 }
299
300 const lines = previewInput.value ? previewInput.value.split('\n').length : 0
301 const format = getPreviewFormat()
302
303 previewLabel.textContent = `Preview · ${format} · ${lines} ${lines === 1 ? 'line' : 'lines'}`
304}
305
306function getPreviewFormat(): string {
307 if (activeTarget === 'http') {

Callers 1

updatePreviewFunction · 0.85

Calls 1

getPreviewFormatFunction · 0.85

Tested by

no test coverage detected