w3c / sensors

Generic Sensor API
https://www.w3.org/TR/generic-sensor/
Other
127 stars 59 forks source link

Sensor.start(): Check for permission before attempting to connect to sensor. #447

Closed rakuco closed 1 year ago

rakuco commented 1 year ago

This better reflects the current implementation in Chromium. Additionally, it makes more sense to check for permission and bail out early than to run "connect to sensor", failing and having to remove the connection.


Preview | Diff