W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2013

Re: [whatwg] Web Notification: API inconsistency

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 23 Aug 2013 14:16:25 +0100
Message-ID: <CADnb78hu2JUwmQEQGz43qQrhvdK6paEs8Ssib2d1oPDJ-vki-g@mail.gmail.com>
To: Jeremie Patonnier <jeremie.patonnier@gmail.com>
Cc: WHATWG <whatwg@whatwg.org>
On Fri, Aug 23, 2013 at 1:16 PM, Jeremie Patonnier
<jeremie.patonnier@gmail.com> wrote:
> The spec define two static methods: `requestPermission` and `get`
> I'm a bit puzzled because `requestPermission` expect a callback function
> where `get` return a `Promise`.

It's not clear to me we can change the design of requestPermission()
at this point. I think end-user notifications have been shipping for a
while now... We could maybe upgrade it at some point to also return a
promise, dunno.

Received on Friday, 23 August 2013 13:16:59 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:23 UTC