fix(blur) check model response status and catch errors

pull/8657/head jitsi-meet_5531
Tudor D. Pop 4 years ago committed by GitHub
parent 67930edae2
commit f69a31d9c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      react/features/stream-effects/blur/index.js

@ -34,6 +34,10 @@ export async function createBlurEffect() {
models['144']
);
if (!modelResponse.ok) {
throw new Error('Failed to download tflite model!');
}
const model = await modelResponse.arrayBuffer();
tflite.HEAPU8.set(new Uint8Array(model), modelBufferOffset);

Loading…
Cancel
Save