Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix

Manav Rathi1e1b3e9d740f
diff --git a/web/packages/gallery/services/video.ts b/web/packages/gallery/services/video.ts
index f9b325a59b..1bf2bf0fce 100644
--- a/web/packages/gallery/services/video.ts
+++ b/web/packages/gallery/services/video.ts
@@ -325,6 +325,8 @@ export const processVideoNewUpload = (
// TODO(HLS):
if (!isVideoProcessingEnabled()) return;
if (file.metadata.fileType !== FileType.video) return;
+
+ const electron = globalThis.electron;
if (!electron) {
// Processing very large videos with the current ffmpeg Wasm
// implementation can cause the app to crash, esp. on mobile devices