Permalink
Browse files

Merge pull request #15 from malept/firefox-mobile

Fix usage on recent versions of Firefox Mobile
  • Loading branch information...
ttsvetko committed Aug 7, 2014
2 parents b9d3110 + 817780d commit b5bc3b27fc042630d16ed55bae378a73d94d02ab
Showing with 4 additions and 4 deletions.
  1. +1 −1 desktop-notify-min.js
  2. +3 −3 desktop-notify.js
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -142,12 +142,12 @@
} else if (win.webkitNotifications && win.webkitNotifications.checkPermission) {
//Chrome & Firefox with html5-notifications plugin installed
permission = PERMISSION[win.webkitNotifications.checkPermission()];
- } else if (navigator.mozNotification) {
- //Firefox Mobile
- permission = PERMISSION_GRANTED;
} else if (win.Notification && win.Notification.permission) {
// Firefox 23+
permission = win.Notification.permission;
+ } else if (navigator.mozNotification) {
+ //Firefox Mobile
+ permission = PERMISSION_GRANTED;
} else if (win.external && (win.external.msIsSiteMode() !== undefined)) { /* keep last */
//IE9+
permission = win.external.msIsSiteMode() ? PERMISSION_GRANTED : PERMISSION_DEFAULT;

0 comments on commit b5bc3b2

Please sign in to comment.