MCPcopy
hub / github.com/zxlie/FeHelper / cancelCapture

Function cancelCapture

apps/screenshot/content-script.js:356–373  ·  view source on GitHub ↗

* 取消截图操作

()

Source from the content-addressed store, hash-verified

354 * 取消截图操作
355 */
356 function cancelCapture() {
357 if (isCapturing) {
358 isCancelled = true;
359 isCapturing = false;
360
361 // 移除进度UI
362 const progressContainer = document.getElementById('fehelper-screenshot-progress');
363 if (progressContainer) {
364 progressContainer.style.display = 'none';
365 }
366
367 // 恢复原始状态
368 cleanup && typeof cleanup === 'function' && cleanup();
369
370 return true;
371 }
372 return false;
373 }
374
375 /**
376 * 隐藏所有FeHelper UI元素

Callers 1

content-script.jsFile · 0.85

Calls 1

cleanupFunction · 0.70

Tested by

no test coverage detected