mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
11 lines
332 B
TypeScript
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);
|
|
}
|
|
}
|