fix(virtual-backgrounds) fix error if we failed to load the model
If another try is made, show an error notification instead of failing with an exception.
This commit is contained in:
parent
9b3f254c6b
commit
a182f53cdc
|
@ -74,6 +74,12 @@ export async function createVirtualBackgroundEffect(virtualBackground: Object, d
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
} else if (isWasmDisabled) {
|
||||||
|
dispatch(showWarningNotification({
|
||||||
|
titleKey: 'virtualBackground.backgroundEffectError'
|
||||||
|
}, NOTIFICATION_TIMEOUT_TYPE.LONG));
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const modelBufferOffset = tflite._getModelBufferMemoryOffset();
|
const modelBufferOffset = tflite._getModelBufferMemoryOffset();
|
||||||
|
|
Loading…
Reference in New Issue