Skip to content

Wrong wasm file path in service? #18

@Usergitbit

Description

@Usergitbit

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions