Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Reilly Grant <[email protected]>
  • Loading branch information
marcoscaceres and reillyeon authored Jul 10, 2024
1 parent 19c5e03 commit ec6f4a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,9 @@ The <dfn method for="DeviceOrientationEvent">requestPermission(|absolute|)</dfn>

1. Let |global| be the [=current global object=].
1. Let |document| be |global|'s [=associated Document=].
1. If |document| is not [=document/fully active=], return [=a promise rejected with=] "{{InvalidStateError}}" {{DOMException}}.
1. If |document| is not [=document/fully active=], return [=a promise rejected with=] an "{{InvalidStateError}}" {{DOMException}}.
1. Let |hadTransientActivation| be true if |global| has [=transient activation=], or false otherwise.
1. Let |promise| be [=a new promise=] in |global|'s [=relevant Realm=].
1. Let |promise| be [=a new promise=] in |global|'s [=relevant realm=].
1. Let |permissions| be « <a permission>"accelerometer"</a>, <a permission>"gyroscope"</a> ».
1. If |absolute| is true, [=set/append=] <a permission>"magnetometer"</a> » to |permissions|.
1. Run these steps <a>in parallel</a>:
Expand Down Expand Up @@ -522,9 +522,9 @@ The <dfn method for="DeviceMotionEvent">requestPermission()</dfn> method steps a

1. Let |global| be the [=current global object=].
1. Let |document| be |global|'s [=associated Document=].
1. If |document| is not [=document/fully active=], return [=a promise rejected with=] "{{InvalidStateError}}" {{DOMException}}.
1. If |document| is not [=document/fully active=], return [=a promise rejected with=] an "{{InvalidStateError}}" {{DOMException}}.
1. Let |hadTransientActivation| be true if |global| has [=transient activation=], or false otherwise.
1. Let |result| be [=a new promise=] in |global|'s [=relevant Realm=].
1. Let |result| be [=a new promise=] in |global|'s [=relevant realm=].
1. Run these steps <a>in parallel</a>:
1. Let |permissions| be « <a permission>"accelerometer"</a>, <a permission>"gyroscope"</a> ».
1. [=list/For each=] |name| of |permissions|:
Expand Down

0 comments on commit ec6f4a8

Please sign in to comment.