Closed rakuco closed 10 months ago
When the permission checks in Sensor.start() fail, a NotAllowedError DOMException is created, not a SecurityError.
Additionally, add the event listener before invoking start() to avoid race conditions.
Preview | Diff
When the permission checks in Sensor.start() fail, a NotAllowedError DOMException is created, not a SecurityError.
Additionally, add the event listener before invoking start() to avoid race conditions.
Preview | Diff