Fixed FF23+ and IE9+.

This commit is contained in:
Martin Edenhofer 2013-06-29 00:21:01 +02:00
parent 722ee08164
commit a4876f9d51

View file

@ -142,9 +142,12 @@
} else if (navigator.mozNotification) {
//Firefox Mobile
permission = PERMISSION_GRANTED;
} else if (win.external && win.external.msIsSiteMode()) { /* keep last */
} else if (win.Notification && win.Notification.permission) {
// Firefox 23+
permission = win.Notification.permission;
} else if (win.external && (win.external.msIsSiteMode() !== undefined)) { /* keep last */
//IE9+
permission = PERMISSION_GRANTED;
permission = win.external.msIsSiteMode() ? PERMISSION_GRANTED : PERMISSION_DEFAULT;
}
return permission;
}