Refactored such that the menu doesn't open for firefox users

Этот коммит содержится в:
nickago
2015-08-13 08:50:40 -07:00
родитель ebd7fd560e
Коммит c5ee567bac
3 изменённых файлов: 23 добавлений и 30 удалений

Просмотреть файл

@@ -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();
}