Update CharCounter.plugin.js

This commit is contained in:
Mirco Wittrien 2019-01-21 16:34:16 +01:00
parent 56bc58fb7f
commit 77a514013d
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@
class CharCounter {
getName () {return "CharCounter";}
getVersion () {return "1.3.1";}
getVersion () {return "1.3.2";}
getAuthor () {return "DevilBro";}
@ -140,6 +140,7 @@ class CharCounter {
appendCounter (input, type) {
if (!input || !type) return;
BDFDB.removeEles(input.parentElement.querySelectorAll("#charcounter"));
var counter = BDFDB.htmlToElement(`<div id="charcounter" class="charcounter ${type}"></div>`);
input.parentElement.appendChild(counter);