Try to fix for browsers that don't support notifications
This commit is contained in:
parent
c41dc5e8e9
commit
e3665c1d67
2 changed files with 6 additions and 4 deletions
|
@ -88,7 +88,7 @@ const Mastodon = React.createClass({
|
|||
}
|
||||
|
||||
// Desktop notifications
|
||||
if (Notification.permission === 'default') {
|
||||
if (typeof window.Notification !== 'undefined' && Notification.permission === 'default') {
|
||||
Notification.requestPermission();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue