Skip to content

In several applications hosted on a single Azure App Service, the camera cannot be opened #41

@KSDev31

Description

@KSDev31

In applications that share the same Azure App Service, the camera may not open properly. This is usually because the file import paths for JavaScript files are not resolved correctly in that environment.

To resolve this, you need to modify the imports in the library's JavaScript file by adding a period (.) at the beginning of the path to make it relative. For example, change: "import '/_content/ZXingBlazor/lib/zxing/zxing.min.js';" to "import './_content/ZXingBlazor/lib/zxing/zxing.min.js';"
Affected line:

import '/_content/ZXingBlazor/lib/zxing/zxing.min.js';

If that's okay with you, I can create a pull request to implement this

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