Skip to content

Commit

Permalink
has/had
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Jul 4, 2024
1 parent db56048 commit 5b2b826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ The <dfn method for="DeviceMotionEvent">requestPermission()</dfn> method steps a
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|:
1. If |name|'s <a>permission state</a> is "{{PermissionState/prompt}}" and |hasTransientActivation| is false:
1. If |name|'s <a>permission state</a> is "{{PermissionState/prompt}}" and |hadTransientActivation| is false:
1. [=Queue a global task=] on the [=device motion and orientation task source=] given |global| to [=reject=] |result| with a "{{NotAllowedError}}" {{DOMException}}.
1. Return.
1. Let |permissionState| be "{{PermissionState/granted}}".
Expand Down

0 comments on commit 5b2b826

Please sign in to comment.