Update FriendNotifications.plugin.js

This commit is contained in:
Mirco Wittrien 2024-10-09 18:35:46 +02:00
parent d91276aa07
commit c4abc8a9f6
1 changed files with 3 additions and 2 deletions

View File

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