- From: Jeffrey Yasskin <notifications@github.com>
- Date: Mon, 11 Jul 2016 09:13:59 -0700
- To: w3c/permissions <permissions@noreply.github.com>
- Cc:
Received on Monday, 11 July 2016 16:15:32 UTC
> @@ -912,16 +912,19 @@ spec: webidl
> add the feature.
> </p>
> <pre class='highlight'>
> - <script>
> - navigator.permissions.query({name:'geolocation'}).then(function(result) {
> - if (result.state == 'granted') {
> - showLocalNewsWithGeolocation();
> - } else if (result.state == 'prompt') {
> - showButtonToEnableLocalNews();
> - }
> - // Don't do anything if the permission was denied.
> - });
> - </script>
> +navigator.permissions.query({ name: "geolocation" }).then(({ state }) => {
With bikeshed, you can leave things inside `<pre>` indented, and it'll figure out the indentation level.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/pull/101/files/470ed130ca7c83f19116181ac87726635a43802b#r70288414
Received on Monday, 11 July 2016 16:15:32 UTC