sciactive / pnotify

Beautiful JavaScript notifications with Web Notifications support.
https://sciactive.com/pnotify/
Apache License 2.0
3.65k stars 513 forks source link

desktop.checkPermission() seems to return 1 when no permission granted #174

Closed chris-jamieson closed 9 years ago

chris-jamieson commented 9 years ago

Perhaps I have misunderstood this function, but it seems that by default the desktop.checkPermission() function returns 1 by default, rather than returning 0.

I have tested this on the PNotify demo site in the JS devtools console, as well as on my own development site, and it seems that the function indicates desktop notification permissions have been granted when they have not.

chris-jamieson commented 9 years ago

I apologise - I think I did misunderstand this function - it returns 0 if permission has been granted, and 1 if permission has not been granted.