diff options
Diffstat (limited to 'app/assets/javascripts/components/containers/mastodon.jsx')
-rw-r--r-- | app/assets/javascripts/components/containers/mastodon.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/containers/mastodon.jsx b/app/assets/javascripts/components/containers/mastodon.jsx index a8a9e365e..3528ef81c 100644 --- a/app/assets/javascripts/components/containers/mastodon.jsx +++ b/app/assets/javascripts/components/containers/mastodon.jsx @@ -88,7 +88,7 @@ const Mastodon = React.createClass({ } // Desktop notifications - if (Notification.permission === 'default') { + if (typeof window.Notification !== 'undefined' && Notification.permission === 'default') { Notification.requestPermission(); } }, |