From 0049292b6d4509c004ffd11d266ff6270c23d1ec Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sat, 17 Feb 2024 17:48:52 +0100 Subject: [PATCH] Update NotificationSounds.plugin.js --- Plugins/NotificationSounds/NotificationSounds.plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/NotificationSounds/NotificationSounds.plugin.js b/Plugins/NotificationSounds/NotificationSounds.plugin.js index 199285b4c6..b24e47ca30 100644 --- a/Plugins/NotificationSounds/NotificationSounds.plugin.js +++ b/Plugins/NotificationSounds/NotificationSounds.plugin.js @@ -2,7 +2,7 @@ * @name NotificationSounds * @author DevilBro * @authorId 278543574059057154 - * @version 3.9.3 + * @version 3.9.4 * @description Allows you to replace the native Sounds with custom Sounds * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -260,12 +260,12 @@ module.exports = (_ => { if (isCurrent && BDFDB.LibraryStores.NotificationSettingsStore.getNotifyMessagesInSelectedChannel()) { this.fireEvent("message3"); - this.playAudio("message3"); + !document.hasFocus() && this.playAudio("message3"); return; } else if (!guildId) { this.fireEvent(isGroupDM ? "groupdm" : "dm"); - this.playAudio(isGroupDM ? "groupdm" : "dm"); + !document.hasFocus() && this.playAudio(isGroupDM ? "groupdm" : "dm"); return; } else if (guildId) {