From 0e9a39b9c99e857478f6677c8850c0a30dab344d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Thu, 4 Jul 2024 10:36:45 +1000 Subject: [PATCH] Update index.bs --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index 32b6281..3409d6c 100644 --- a/index.bs +++ b/index.bs @@ -296,7 +296,7 @@ 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. Let |hadTransientActivation| be |global| has [=transient activation=], and false otherwise. + 1. Let |hadTransientActivation| be true if |global| has [=transient activation=], and false otherwise. 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|.