Fixed FF23+ and IE9+.
This commit is contained in:
parent
722ee08164
commit
a4876f9d51
1 changed files with 5 additions and 2 deletions
|
@ -142,9 +142,12 @@
|
||||||
} else if (navigator.mozNotification) {
|
} else if (navigator.mozNotification) {
|
||||||
//Firefox Mobile
|
//Firefox Mobile
|
||||||
permission = PERMISSION_GRANTED;
|
permission = PERMISSION_GRANTED;
|
||||||
} else if (win.external && win.external.msIsSiteMode()) { /* keep last */
|
} else if (win.Notification && win.Notification.permission) {
|
||||||
|
// Firefox 23+
|
||||||
|
permission = win.Notification.permission;
|
||||||
|
} else if (win.external && (win.external.msIsSiteMode() !== undefined)) { /* keep last */
|
||||||
//IE9+
|
//IE9+
|
||||||
permission = PERMISSION_GRANTED;
|
permission = win.external.msIsSiteMode() ? PERMISSION_GRANTED : PERMISSION_DEFAULT;
|
||||||
}
|
}
|
||||||
return permission;
|
return permission;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue