mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:42 +01:00
Fix errors happening in mobile framework
This commit is contained in:
parent
b568b99a57
commit
70e8a1b3ae
@ -108,6 +108,9 @@ egw.extend('notification', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
||||
* @returns {Boolean} true if notification is supported and permitted otherwise false
|
||||
*/
|
||||
checkNotification: function () {
|
||||
// Check if the notification is supported by browser
|
||||
if (typeof Notification == 'undefined') return false;
|
||||
|
||||
// Ask for permission if there's nothing decided yet
|
||||
if (Notification && Notification.requestPermission && permission == 'default') {
|
||||
Notification.requestPermission (function(_permission){
|
||||
|
@ -855,7 +855,7 @@
|
||||
{
|
||||
for (var app in apps)
|
||||
{
|
||||
framework.notifyAppTab(app, apps[app]);
|
||||
if (framework.notifyAppTab) framework.notifyAppTab(app, apps[app]);
|
||||
}
|
||||
|
||||
$topmenu_info_notifications.addClass('egwpopup_notify');
|
||||
|
Loading…
Reference in New Issue
Block a user