From 2ee2da60b2ca230107186ed25e2104bc550d6b5f Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 11 Feb 2019 10:59:55 +0100 Subject: [PATCH] Update SpellCheck.plugin.js --- Plugins/SpellCheck/SpellCheck.plugin.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Plugins/SpellCheck/SpellCheck.plugin.js b/Plugins/SpellCheck/SpellCheck.plugin.js index 670f2cd9ca..d07a758354 100644 --- a/Plugins/SpellCheck/SpellCheck.plugin.js +++ b/Plugins/SpellCheck/SpellCheck.plugin.js @@ -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 => {