mirror of https://github.com/zulip/zulip.git
Firefox on Ubuntu claims falsely to be able to do webkit notifications
(imported from commit d4778f38eaefc4fe95d93c6f3dcb5e43bbef5bb2)
This commit is contained in:
parent
360737d928
commit
621dbcaac0
|
@ -10,6 +10,8 @@ var names;
|
|||
|
||||
function browser_desktop_notifications_on () {
|
||||
return (window.webkitNotifications &&
|
||||
// Firefox on Ubuntu claims to do webkitNotifications but its notifications are terrible
|
||||
$.browser.webkit &&
|
||||
// 0 is PERMISSION_ALLOWED
|
||||
window.webkitNotifications.checkPermission() === 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue