notify.js icon indicating copy to clipboard operation
notify.js copied to clipboard

Support Promise API

Open turnerhayes opened this issue 8 years ago • 1 comments
trafficstars

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.

turnerhayes avatar Aug 02 '17 22:08 turnerhayes

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

alexgibson avatar Aug 03 '17 06:08 alexgibson