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