mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 15:22:35 -05:00
Fix muting notification sounds
This commit is contained in:
@@ -1118,7 +1118,7 @@
|
||||
if (autoscroll) {
|
||||
this.$chatFrame.scrollTop(this.$chat.height());
|
||||
}
|
||||
if (!app.focused && !Tools.prefs('muted') && Tools.prefs('notifvolume')) {
|
||||
if (!app.focused && !Tools.prefs('mute') && Tools.prefs('notifvolume')) {
|
||||
soundManager.getSoundById('notif').setVolume(Tools.prefs('notifvolume')).play();
|
||||
}
|
||||
},
|
||||
@@ -1450,7 +1450,7 @@
|
||||
}
|
||||
|
||||
if (mayNotify && isHighlighted) {
|
||||
if (!Tools.prefs('muted') && Tools.prefs('notifvolume')) {
|
||||
if (!Tools.prefs('mute') && Tools.prefs('notifvolume')) {
|
||||
soundManager.getSoundById('notif').setVolume(Tools.prefs('notifvolume')).play();
|
||||
}
|
||||
var $lastMessage = this.$chat.children().last();
|
||||
|
||||
Reference in New Issue
Block a user