Skip to content

The swiss army knife of lossless video/audio editing

fix warning from js console

Mikael Finstad260603f61363
diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx
index b77637b3..45aabe88 100644
--- a/src/renderer/src/App.tsx
+++ b/src/renderer/src/App.tsx
@@ -626,7 +626,7 @@ function App() {
const usingPreviewFile = !!previewFilePath;
const effectiveFilePath = previewFilePath || filePath;
const fileUri = useMemo(() => {
- if (!effectiveFilePath) return ''; // Setting video src="" prevents memory leak in chromium
+ if (!effectiveFilePath) return undefined;
const uri = pathToFileURL(effectiveFilePath).href;
// https://github.com/mifi/lossless-cut/issues/1674
if (cacheBuster !== 0) {