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:
TODO:
- Find a way to detect this reliably and add to
qz-tray.js.