diff --git a/react/features/face-landmarks/createImageBitmap.js b/react/features/face-landmarks/createImageBitmap.js index 89f159ba0..59a61c1c1 100644 --- a/react/features/face-landmarks/createImageBitmap.js +++ b/react/features/face-landmarks/createImageBitmap.js @@ -1,5 +1,5 @@ /* -* Safari polyfill for createImageBitmap +* Safari < 15 polyfill for createImageBitmap * https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/createImageBitmap * * Support source image types: Canvas. @@ -16,6 +16,9 @@ if (!('createImageBitmap' in window)) { } const img = document.createElement('img'); + // eslint-disable-next-line no-empty-function + img.close = () => {}; + img.addEventListener('load', () => { resolve(img); });