Update ChatFilter.plugin.js
This commit is contained in:
parent
9b68be9133
commit
c9e9ab0ff0
|
@ -2,7 +2,7 @@
|
||||||
* @name ChatFilter
|
* @name ChatFilter
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 3.5.6
|
* @version 3.5.7
|
||||||
* @description Allows you to censor Words or block complete Messages/Statuses
|
* @description Allows you to censor Words or block complete Messages/Statuses
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -280,13 +280,7 @@ module.exports = (_ => {
|
||||||
BDFDB.MessageUtils.rerenderAll();
|
BDFDB.MessageUtils.rerenderAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
onNativeContextMenu (e) {
|
onTextAreaContextMenu (e) {
|
||||||
if (e.instance.props.value && e.instance.props.value.trim()) {
|
|
||||||
if ((e.instance.props.type == "NATIVE_TEXT" || e.instance.props.type == "CHANNEL_TEXT_AREA") && this.settings.general.addContextMenu) this.injectItem(e, e.instance.props.value.trim());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onSlateContextMenu (e) {
|
|
||||||
let text = document.getSelection().toString().trim();
|
let text = document.getSelection().toString().trim();
|
||||||
if (text && this.settings.general.addContextMenu) this.injectItem(e, text);
|
if (text && this.settings.general.addContextMenu) this.injectItem(e, text);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue