alexgibson/notify.js — pull request #28 by kitbrennan90 (2014-11-17 15:15:07+00:00)
Title: Return current user's permission level

Currently it is only possible to know if someone has granted permission - using needsPermission - but not whether the permission was otherwise denied or default.

I find myself wanting to retrieve the current notification permission level, in order to display a different message to those that have previously denied my application, as opposed to those that have 'default' permission.

This short pull request returns that permission level.