Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(avatars) refactor preloading
Saúl Ibarra Corretgéa3fb996ff020
diff --git a/react/features/base/participants/preloadImage.web.js b/react/features/base/participants/preloadImage.web.jsindex 29fb2ae181..6e868cefc8 100644--- a/react/features/base/participants/preloadImage.web.js+++ b/react/features/base/participants/preloadImage.web.js@@ -15,10 +15,16 @@ export function preloadImage(src: string | Object): Promise<string> {}return new Promise((resolve, reject) => {- const image = document.createElement('img');-- image.onload = () => resolve(src);- image.onerror = reject;- image.src = src;+ fetch(src, { referrer: '' })+ .then(response => {+ if (response.ok) {+ resolve(src);+ } else {+ reject();+ }+ })+ .catch(e => {+ reject(e);+ });});}