Re: Input needed: Cancelling a permission request?

On Thu, Feb 26, 2015 at 12:33 PM, Stefan HÃ¥kansson LK
<stefan.lk.hakansson@ericsson.com> wrote:
> What is supposed to happen if you do:
>
> var p = navigator.mediaDevices.getUserMedia(options);
>
> followed by
>
> p.constructor.reject();

There's no public way to reject p. Promise.reject() is a static method
to create an instance of a rejected promise.


-- 
https://annevankesteren.nl/

Received on Thursday, 26 February 2015 11:43:28 UTC