Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

only enable clip on electron

Abhinavb33478522f91
diff --git a/apps/photos/src/pages/gallery/index.tsx b/apps/photos/src/pages/gallery/index.tsx
index 59deef5db5..b055dbac9e 100644
--- a/apps/photos/src/pages/gallery/index.tsx
+++ b/apps/photos/src/pages/gallery/index.tsx
@@ -123,6 +123,7 @@ import { getLocalFamilyData } from 'utils/user/family';
import InMemoryStore, { MS_KEYS } from 'services/InMemoryStore';
import { syncEmbeddings } from 'services/embeddingService';
import { ClipService } from 'services/clipService';
+import isElectron from 'is-electron';
export const DeadCenter = styled('div')`
flex: 1;
@@ -710,8 +711,10 @@ export default function Gallery() {
await syncTrash(collections, setTrashedFiles);
await syncEntities();
await syncMapEnabled();
- await syncEmbeddings();
- void ClipService.scheduleImageEmbeddingExtraction();
+ if (isElectron()) {
+ await syncEmbeddings();
+ void ClipService.scheduleImageEmbeddingExtraction();
+ }
} catch (e) {
switch (e.message) {
case ServerErrorCodes.SESSION_EXPIRED: