Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

Commit

Permalink
Merge pull request #15 from malept/firefox-mobile
Browse files Browse the repository at this point in the history
Fix usage on recent versions of Firefox Mobile
  • Loading branch information
ttsvetko committed Aug 7, 2014
2 parents b9d3110 + 817780d commit b5bc3b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion desktop-notify-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions desktop-notify.js
Expand Up @@ -142,12 +142,12 @@
} else if (win.webkitNotifications && win.webkitNotifications.checkPermission) { } else if (win.webkitNotifications && win.webkitNotifications.checkPermission) {
//Chrome & Firefox with html5-notifications plugin installed //Chrome & Firefox with html5-notifications plugin installed
permission = PERMISSION[win.webkitNotifications.checkPermission()]; permission = PERMISSION[win.webkitNotifications.checkPermission()];
} else if (navigator.mozNotification) {
//Firefox Mobile
permission = PERMISSION_GRANTED;
} else if (win.Notification && win.Notification.permission) { } else if (win.Notification && win.Notification.permission) {
// Firefox 23+ // Firefox 23+
permission = win.Notification.permission; permission = win.Notification.permission;
} else if (navigator.mozNotification) {
//Firefox Mobile
permission = PERMISSION_GRANTED;
} else if (win.external && (win.external.msIsSiteMode() !== undefined)) { /* keep last */ } else if (win.external && (win.external.msIsSiteMode() !== undefined)) { /* keep last */
//IE9+ //IE9+
permission = win.external.msIsSiteMode() ? PERMISSION_GRANTED : PERMISSION_DEFAULT; permission = win.external.msIsSiteMode() ? PERMISSION_GRANTED : PERMISSION_DEFAULT;
Expand Down

0 comments on commit b5bc3b2

Please sign in to comment.