From 7751060b63d785e38f986c3a183b5914b163ff5a Mon Sep 17 00:00:00 2001 From: Gabriel Borlea Date: Fri, 25 Mar 2022 13:43:32 +0200 Subject: [PATCH] fix(facial-expressions): base url for models (#11218) --- react/features/facial-recognition/actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react/features/facial-recognition/actions.js b/react/features/facial-recognition/actions.js index f08bc66dc..baf4f33d9 100644 --- a/react/features/facial-recognition/actions.js +++ b/react/features/facial-recognition/actions.js @@ -67,8 +67,8 @@ export function loadWorker() { return; } - const baseUrl = getBaseUrl(); - let workerUrl = `${baseUrl}libs/facial-expressions-worker.min.js`; + const baseUrl = `${getBaseUrl()}/libs/`; + let workerUrl = `${baseUrl}facial-expressions-worker.min.js`; const workerBlob = new Blob([ `importScripts("${workerUrl}");` ], { type: 'application/javascript' });