Skip to content

Detect common API vs browser #77

Open
@jkrems

Description

@jkrems

Some code that runs in either the browser or a non-browser environment may have dedicated code paths for each, e.g. because certain code isn't expected to work- or to be exposed in browsers (or vice versa). The only API that is exposed in the minimum common API appears to be navigator.userAgent and it looks fragile when it comes to detecting browser vs non-browser environments.

Are there plans to have a clear signal that can be used to detect the presence of the minimum common API?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions