Skip to content

Commit

Permalink
Fix find-and-replace errors on virtual sensor types
Browse files Browse the repository at this point in the history
  • Loading branch information
reillyeon authored May 21, 2024
1 parent 49c3e68 commit 29c2bb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,8 @@ At an [=implementation-defined=] interval |interval|, the user agent must execut
1. If |document| is not [=allowed to use=] the [=policy-controlled feature=] named |policy|, return.
1. Let |topLevelTraversable| be |window|'s [=Window/navigable=]'s [=navigable/top-level traversable=].
1. Let |platformLinearAcceleration| be null.
1. If |topLevelTraversable|'s [=virtual sensor mapping=] [=map/contains=] "`linear`e>":
1. Let |virtualSensor| be |topLevelTraversable|'s [=virtual sensor mapping=]["`linear`e>"].
1. If |topLevelTraversable|'s [=virtual sensor mapping=] [=map/contains=] "`linear-acceleration`":
1. Let |virtualSensor| be |topLevelTraversable|'s [=virtual sensor mapping=]["`linear-acceleration`"].
1. If |virtualSensor|'s [=can provide readings flag=] is true, then set |platformLinearAcceleration| to the latest readings provided to |virtualSensor|.
1. Otherwise, if the implementation is able to provide [=linear acceleration=]:
1. Set |platformLinearAcceleration| to the device's [=linear acceleration=] along the X, Y and Z axes.
Expand Down

0 comments on commit 29c2bb2

Please sign in to comment.