From 97428b726e002ed92c71bc4d7056b87f6c3ce64e Mon Sep 17 00:00:00 2001 From: Jordan Collins Date: Wed, 10 Mar 2021 01:20:49 +1100 Subject: [PATCH] Update index.html Small typo --- files/en-us/web/api/orientationsensor/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/api/orientationsensor/index.html b/files/en-us/web/api/orientationsensor/index.html index e67897b61d1ce81..fba6ef8ebda7b98 100644 --- a/files/en-us/web/api/orientationsensor/index.html +++ b/files/en-us/web/api/orientationsensor/index.html @@ -65,7 +65,7 @@

Basic Example

Permissions Example

-

Using orientation sensors requires requsting permissions for multiple device sensors. Becuase the {{domxref('Permissions')}} uses promises, a good way to request permissions is to use {{jsxref('Promise.all')}}.

+

Using orientation sensors requires requsting permissions for multiple device sensors. Because the {{domxref('Permissions')}} uses promises, a good way to request permissions is to use {{jsxref('Promise.all')}}.

const sensor = new AbsoluteOrientationSensor();
 Promise.all([navigator.permissions.query({ name: "accelerometer" }),