- From: Mike Taylor <notifications@github.com>
- Date: Fri, 04 Feb 2022 07:57:07 -0800
- To: w3c/permissions <permissions@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 4 February 2022 15:57:19 UTC
@miketaylr commented on this pull request.
> </p>
<pre class="example js" title="Checking the state of multiple permissions">
- const queryPromises = ["geolocation", "notifications"].map(name => {
- return navigator.permissions.query({ name });
- });
+ const queryPromises = ["geolocation", "notifications"].map(
+ name => navigator.permissions.query({ name });
(that semi-colon will cause a syntax error because we're inside a fat-arrow fn w/o braces)
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/pull/350#discussion_r799596209
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/permissions/pull/350/review/873272554@github.com>
Received on Friday, 4 February 2022 15:57:19 UTC