mirror of
https://git.um-react.app/um/web.git
synced 2026-01-11 16:24:12 +00:00
refactor: change common -> index
(cherry picked from commit eb6be0d9d13a0834b6a7ada9aab846cfbbdfd664)
This commit is contained in:
@@ -13,7 +13,7 @@ import { SplitFilename } from '@/decrypt/utils';
|
||||
import { storage } from '@/utils/storage';
|
||||
import InMemoryStorage from '@/utils/storage/InMemoryStorage';
|
||||
|
||||
export async function CommonDecrypt(file: FileInfo, config: Record<string, any>): Promise<DecryptResult> {
|
||||
export async function Decrypt(file: FileInfo, config: Record<string, any>): Promise<DecryptResult> {
|
||||
// Worker thread will fallback to in-memory storage.
|
||||
if (storage instanceof InMemoryStorage) {
|
||||
await storage.setAll(config);
|
||||
Reference in New Issue
Block a user