Skip to content

Detect permission state of Local Network Access setting #1382

@tresf

Description

@tresf

Upstream question:

We need a way to programmatically detect the presence of the Local Network Access (LNA) setting to better inform users when it's preventing a connection from succeeding.

navigator.permissions.query({ name: 'local-network-access'})
    .then(result => console.log("LNA permission state: ", result))
    .catch(err => console.error(err));

Firefox 147 Nightly:

TypeError: 'local-network-access' (value of 'name' member of PermissionDescriptor) is not a valid value for enumeration PermissionName.
    <anonymous> debugger eval code:1

Safari 18.6:

TypeError: Type error

TODO:

  • Find a way to detect this reliably and add to qz-tray.js.

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