From fb9e891246db3b8b69e70697d29be5b36b8c7578 Mon Sep 17 00:00:00 2001
From: nickago <ngonella@calpoly.edu>
Date: Mon, 17 Aug 2015 08:10:49 -0700
Subject: Added hardcoded firefox function

---
 web/react/utils/utils.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'web/react/utils/utils.jsx')

diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index ba48f0b1b..bc1009135 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 (!module.exports.checkBrowserType('firefox')) {
+    if (!module.exports.isBrowserFirefox()) {
         var audio = new Audio('/static/images/ding.mp3');
         audio.play();
     }
@@ -937,6 +937,6 @@ module.exports.generateId = function() {
     return id;
 };
 
-module.exports.checkBrowserType = function(browser) {
-    return navigator && navigator.userAgent && navigator.userAgent.toLowerCase().indexOf(browser.toLowerCase()) > -1
+module.exports.isBrowserFirefox = function() {
+    return navigator && navigator.userAgent && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
 }
-- 
cgit v1.2.3-1-g7c22

