From c4abc8a9f6c8b3e50b39032de642f47659f25f76 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Wed, 9 Oct 2024 18:35:46 +0200 Subject: [PATCH] Update FriendNotifications.plugin.js --- Plugins/FriendNotifications/FriendNotifications.plugin.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Plugins/FriendNotifications/FriendNotifications.plugin.js b/Plugins/FriendNotifications/FriendNotifications.plugin.js index 885c49c2f6..632631d107 100644 --- a/Plugins/FriendNotifications/FriendNotifications.plugin.js +++ b/Plugins/FriendNotifications/FriendNotifications.plugin.js @@ -2,7 +2,7 @@ * @name FriendNotifications * @author DevilBro * @authorId 278543574059057154 - * @version 2.0.2 + * @version 2.0.3 * @description Shows a Notification when a Friend or a User, you choose to observe, changes their Status * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -691,7 +691,8 @@ module.exports = (_ => { }), BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Button, { onClick: _ => { - let source = settingsPanel.props._node.querySelector(`.input-${key}src ` + BDFDB.dotCN.input).value.trim(); + let source = settingsPanel.props._node.querySelector(`.input-${key}src ` + BDFDB.dotCN.input); + let value = source && (source.getAttribute("file") || source.value).trim() if (!source.length) { BDFDB.NotificationUtils.toast(`Sound File was removed.`, {type: "warning"}); successSavedAudio(key, source, source);