From 56f17c06ea1338af7d69ba70e6bcdf809a2a7acb Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Wed, 20 Mar 2024 16:17:19 +0100 Subject: [PATCH] Update NotificationSounds.plugin.js --- Plugins/NotificationSounds/NotificationSounds.plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/NotificationSounds/NotificationSounds.plugin.js b/Plugins/NotificationSounds/NotificationSounds.plugin.js index d1f33fa9cd..eb4135286e 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.5 + * @version 3.9.6 * @description Allows you to replace the native Sounds with custom Sounds * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -265,7 +265,7 @@ module.exports = (_ => { } else if (!guildId) { this.fireEvent(isGroupDM ? "groupdm" : "dm"); - !document.hasFocus() && this.playAudio(isGroupDM ? "groupdm" : "dm"); + (!isCurrent || !document.hasFocus()) && this.playAudio(isGroupDM ? "groupdm" : "dm"); return; } else if (guildId) {