Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(file-sharing) remove bogus error check

Saúl Ibarra Corretgéec61563e8aae
diff --git a/react/features/file-sharing/middleware.web.ts b/react/features/file-sharing/middleware.web.ts
index 3a21154733..7b0acf4cbf 100644
--- a/react/features/file-sharing/middleware.web.ts
+++ b/react/features/file-sharing/middleware.web.ts
@@ -169,11 +169,7 @@ MiddlewareRegistry.register(store => next => action => {
throw new Error('No presigned URL found in the response.');
}
- const newTab = window.open(url, '_blank', 'noreferrer,noopener');
-
- if (!newTab) {
- throw new Error('Failed to open a new tab for the file download.');
- }
+ window.open(url, '_blank', 'noreferrer,noopener');
})
.catch(error => {
logger.warn('Could not download file:', error);