Update FriendNotifications.plugin.js
This commit is contained in:
parent
d91276aa07
commit
c4abc8a9f6
|
@ -2,7 +2,7 @@
|
||||||
* @name FriendNotifications
|
* @name FriendNotifications
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @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
|
* @description Shows a Notification when a Friend or a User, you choose to observe, changes their Status
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -691,7 +691,8 @@ module.exports = (_ => {
|
||||||
}),
|
}),
|
||||||
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Button, {
|
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Button, {
|
||||||
onClick: _ => {
|
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) {
|
if (!source.length) {
|
||||||
BDFDB.NotificationUtils.toast(`Sound File was removed.`, {type: "warning"});
|
BDFDB.NotificationUtils.toast(`Sound File was removed.`, {type: "warning"});
|
||||||
successSavedAudio(key, source, source);
|
successSavedAudio(key, source, source);
|
||||||
|
|
Loading…
Reference in New Issue