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

Function canCaptureCurrentTarget

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

Source from the content-addressed store, hash-verified

254}
255
256function canCaptureCurrentTarget(): boolean {
257 if (!currentPayload) {
258 return false
259 }
260
261 if (activeTarget === 'code') {
262 return Boolean(currentPayload.selectedText.trim())
263 }
264
265 return true
266}
267
268function updateSettingsPanel(isOpen: boolean): void {
269 if (!settingsPanel || !toggleSettingsButton) {

Callers 2

captureCurrentPayloadFunction · 0.85
updateTargetButtonsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected