Update SpellCheck.plugin.js

This commit is contained in:
Mirco Wittrien 2019-02-11 10:59:55 +01:00
parent f3c6fc977b
commit 2ee2da60b2
1 changed files with 6 additions and 2 deletions

View File

@ -3,13 +3,17 @@
class SpellCheck {
getName () {return "SpellCheck";}
getVersion () {return "1.3.1";}
getVersion () {return "1.3.2";}
getAuthor () {return "DevilBro";}
getDescription () {return "Adds a spellcheck to all textareas. Select a word and rightclick it to add it to your dictionary.";}
initConstructor () {
this.changelog = {
"fixed":[["Plugin not working","Fixed a bug that could break the plugin and render SpellCheck unusable"]]
};
this.patchModules = {
"ChannelTextArea":"componentDidMount"
};
@ -224,7 +228,7 @@ class SpellCheck {
textarea.setAttribute("spellcheck", !BDFDB.getData("disableDiscordSpellcheck", this, "settings"));
textarea.parentElement.appendChild(spellcheck);
wrapper.addClass("spellcheck-added");
BDFDB.addClass(wrapper, "spellcheck-added");
updateSpellcheck();
BDFDB.addEventListener(this, textarea, "keyup", e => {