summaryrefslogtreecommitdiffstats
path: root/web/react/utils/utils.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-02-22 08:31:10 -0500
committerChristopher Speller <crspeller@gmail.com>2016-02-22 08:47:00 -0500
commit4c92a1c1e35402730f74cf24a0c71729f4d0a676 (patch)
treea614a1bd7c10414182696e794a9e8dfc119e280e /web/react/utils/utils.jsx
parent040bff2b9f384b88179f6ec1beb40d92102c9ba3 (diff)
downloadchat-4c92a1c1e35402730f74cf24a0c71729f4d0a676.tar.gz
chat-4c92a1c1e35402730f74cf24a0c71729f4d0a676.tar.bz2
chat-4c92a1c1e35402730f74cf24a0c71729f4d0a676.zip
Updating some client deps + eslint
Diffstat (limited to 'web/react/utils/utils.jsx')
-rw-r--r--web/react/utils/utils.jsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index 2b946d81f..a4d2515e2 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -142,6 +142,7 @@ export function getCookie(name) {
if (parts.length === 2) {
return parts.pop().split(';').shift();
}
+ return '';
}
var requestedNotificationPermission = false;
@@ -188,7 +189,10 @@ export function ding() {
var audio = new Audio('/static/images/bing.mp3');
audio.play();
canDing = false;
- setTimeout(() => canDing = true, 3000);
+ setTimeout(() => {
+ canDing = true;
+ return;
+ }, 3000);
}
}