Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

Support Promise API #79

Open
turnerhayes opened this issue Aug 2, 2017 · 1 comment
Open

Support Promise API #79

turnerhayes opened this issue Aug 2, 2017 · 1 comment

Comments

@turnerhayes
Copy link

The latest version of requestPermission deprecates the callback interface in favor of a Promise-based interface. This library should support the Promise-based interface as well.

It looks like Safari doesn't currently support the Promise interface, but it should be possible for this library to have its requestPermission both take a callback and return a promise for backwards compatibility.

@alexgibson
Copy link
Owner

Thanks for filing this, I'll try and see to adding it soon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants