diff options
author | nickago <ngonella@calpoly.edu> | 2015-08-13 08:50:40 -0700 |
---|---|---|
committer | nickago <ngonella@calpoly.edu> | 2015-08-13 08:50:40 -0700 |
commit | c5ee567bacbc55372d526c668fa138c80545498e (patch) | |
tree | ad7235d7618c446417c86a3ec60c57388aa8d864 /web/react/utils | |
parent | ebd7fd560e7ce87de6ebf3e94f84796eecba29ce (diff) | |
download | chat-c5ee567bacbc55372d526c668fa138c80545498e.tar.gz chat-c5ee567bacbc55372d526c668fa138c80545498e.tar.bz2 chat-c5ee567bacbc55372d526c668fa138c80545498e.zip |
Refactored such that the menu doesn't open for firefox users
Diffstat (limited to 'web/react/utils')
-rw-r--r-- | web/react/utils/utils.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx index b1832f3f1..6236e11dd 100644 --- a/web/react/utils/utils.jsx +++ b/web/react/utils/utils.jsx @@ -124,7 +124,7 @@ module.exports.notifyMe = function(title, body, channel) { } module.exports.ding = function() { - if (!navigator || navigator.userAgent.toLowerCase().indexOf("firefox") === -1) { + if (!navigator || !navigator.userAgent || navigator.userAgent.toLowerCase().indexOf("firefox") === -1) { var audio = new Audio('/static/images/ding.mp3'); audio.play(); } |