fix(facial-expressions): base url for models (#11218)

This commit is contained in:
Gabriel Borlea 2022-03-25 13:43:32 +02:00 committed by GitHub
parent 25f53503e8
commit 7751060b63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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' });