Re: [permissions] Version of the API that should be simple, extensible and ready for MVP. (#20)

> @@ -496,7 +517,7 @@
>      document.getElementById('chat-notification-button').disabled = (permission.status == 'denied');
>    }
>  
> -  navigator.permissions.query('notifications').then(function(result) {
> +  navigator.permissions.query({name:'notifications'}).then(function(result) {
>      updateNotificationButton(result);

Given that `result` is basically just `status` + an event handler, maybe just pass `result.status` here and below.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/pull/20/files#r27493742

Received on Tuesday, 31 March 2015 16:05:49 UTC