Files
AFFiNE-Mirror/packages/frontend/workspace/src/impl/local/blob.ts
2023-12-15 07:20:50 +00:00

11 lines
332 B
TypeScript

import { createIndexeddbBlobStorage } from './blob-indexeddb';
import { createSQLiteBlobStorage } from './blob-sqlite';
export function createLocalBlobStorage(workspaceId: string) {
if (environment.isDesktop) {
return createSQLiteBlobStorage(workspaceId);
} else {
return createIndexeddbBlobStorage(workspaceId);
}
}