Firefox on Ubuntu claims falsely to be able to do webkit notifications

(imported from commit d4778f38eaefc4fe95d93c6f3dcb5e43bbef5bb2)
This commit is contained in:
Jeff Arnold 2013-01-21 15:50:33 -05:00
parent 360737d928
commit 621dbcaac0
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ var names;
function browser_desktop_notifications_on () { function browser_desktop_notifications_on () {
return (window.webkitNotifications && return (window.webkitNotifications &&
// Firefox on Ubuntu claims to do webkitNotifications but its notifications are terrible
$.browser.webkit &&
// 0 is PERMISSION_ALLOWED // 0 is PERMISSION_ALLOWED
window.webkitNotifications.checkPermission() === 0); window.webkitNotifications.checkPermission() === 0);
} }