refactor(StorageCleaner): 移动 isRestrictedUrl 函数到独立模块并更新相关引用

- 将 isRestrictedUrl 函数从 storageCleaner 移动到 restrictedUrls 模块,优化代码结构。
- 更新相关文件以引用新的位置,移除冗余的测试用例。
This commit is contained in:
雨霖铃
2026-06-19 21:09:22 +08:00
parent c98d09d14c
commit ebf9f7a153
4 changed files with 2 additions and 50 deletions
-1
View File
@@ -1,6 +1,5 @@
import type { CleaningResult, StorageCleanerOptions, StorageCleanResult } from '@/types/storage';
import { CLEAN_OPTION_KEYS, OPTION_LABELS } from '@/pages/StorageCleaner/constants';
export { isRestrictedUrl } from '@/utils/restrictedUrls';
export async function getCurrentTab() {
// For popup pages, we need to get the active tab from the browser window that triggered the popup.