ng-open-cv icon indicating copy to clipboard operation
ng-open-cv copied to clipboard

Wrong wasm file path in service?

Open Usergitbit opened this issue 4 years ago • 1 comments

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.

Usergitbit avatar Jul 31 '20 21:07 Usergitbit

Thanks for reporting that. I'll be looking into this and patching it

devakone avatar Nov 15 '20 21:11 devakone