Skip to content

Commit c04e324

Browse files
author
Raphael Kubo da Costa
authored
Request sensor access: remove "in parallel" block. (#449)
This abstract operation is only invoked from Sensor.start(), which already calls it from an "in parallel" step. Remove it from the operation's algorithm to avoid needlessly two levels of "in parallel" steps.
1 parent dff9ee6 commit c04e324

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

index.bs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,12 +1552,11 @@ to {{SensorErrorEventInit}}.
15521552
1. Let |sensor| be the [=platform sensor=] associated with |sensor_instance|.
15531553
1. Let |sensor_permissions| be |sensor|'s associated [=ordered set|set=] of
15541554
[=sensor permission names|permission names=].
1555-
1. Run these sub-steps [=in parallel=]:
1556-
1. [=set/For each=] |permission_name| in |sensor_permissions|,
1557-
1. Let |state| be the result of [=request permission to use|requesting permission to use=] |permission_name|.
1558-
1. If |state| is "denied"
1559-
1. Return "denied".
1560-
1. Otherwise, return "granted".
1555+
1. [=set/For each=] |permission_name| in |sensor_permissions|,
1556+
1. Let |state| be the result of [=request permission to use|requesting permission to use=] |permission_name|.
1557+
1. If |state| is "denied"
1558+
1. Return "denied".
1559+
1. Return "granted".
15611560
</div>
15621561

15631562
<h2 id="automation">Automation</h2>

0 commit comments

Comments
 (0)