ng-open-cv
ng-open-cv copied to clipboard
Wrong wasm file path in service?
Just tried testing this and the service creates a wrong path for me in this function:
private locateFile(path, scriptDirectory): string {
if (path === 'opencv_js.wasm') {
return scriptDirectory + '/wasm/' + path;
} else {
return scriptDirectory + path;
}
}
The adding of the '/wasm/' result in an incorrect link as the path already seems to be 'http://localhost:4200/assets/opencv/wasm/3.4/'.
This is happening in Angular10 in development mode.
Thanks for reporting that. I'll be looking into this and patching it