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

Function updateCaptureName

integrations/clipper/src/popup.ts:213–227  ·  view source on GitHub ↗
(force = false)

Source from the content-addressed store, hash-verified

211}
212
213function updateCaptureName(force = false): void {
214 if (!captureNameInput || !currentPayload) {
215 return
216 }
217
218 if (isCaptureNameEdited && !force) {
219 return
220 }
221
222 captureNameInput.value = getCaptureNameSuggestion(
223 activeTarget,
224 currentPayload,
225 )
226 isCaptureNameEdited = false
227}
228
229function updatePreview(): void {
230 if (!previewInput || !currentPayload) {

Callers 2

initFunction · 0.85
bindEventsFunction · 0.85

Calls 1

getCaptureNameSuggestionFunction · 0.90

Tested by

no test coverage detected