From ec6f4a8b3d0c258a317faf8bedfb441e63652299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Wed, 10 Jul 2024 10:58:19 +1000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Reilly Grant --- index.bs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.bs b/index.bs index 16f8d35..15853cf 100644 --- a/index.bs +++ b/index.bs @@ -295,9 +295,9 @@ The requestPermission(|absolute|) 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 « "accelerometer", "gyroscope" ». 1. If |absolute| is true, [=set/append=] "magnetometer" » to |permissions|. 1. Run these steps in parallel: @@ -522,9 +522,9 @@ The requestPermission() 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 in parallel: 1. Let |permissions| be « "accelerometer", "gyroscope" ». 1. [=list/For each=] |name| of |permissions|: