Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong wasm file path in service? #18

Open
Usergitbit opened this issue Jul 31, 2020 · 1 comment
Open

Wrong wasm file path in service? #18

Usergitbit opened this issue Jul 31, 2020 · 1 comment

Comments

@Usergitbit
Copy link

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.

@devakone
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants