diff options
-rw-r--r-- | web/react/utils/utils.jsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx index 575b6d011..fff9c460b 100644 --- a/web/react/utils/utils.jsx +++ b/web/react/utils/utils.jsx @@ -151,10 +151,14 @@ export function notifyMe(title, body, channel) { } } +var canDing = true; + export function ding() { - if (!isBrowserFirefox()) { + if (!isBrowserFirefox() && canDing) { var audio = new Audio('/static/images/ding.mp3'); audio.play(); + canDing = false; + setTimeout(() => canDing = true, 3000); } } |