* 取消截图操作
()
| 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元素 |
no test coverage detected