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.
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.