Update CharCounter.plugin.js
This commit is contained in:
parent
dcb97403e0
commit
36738e92b5
|
@ -180,7 +180,7 @@ module.exports = (_ => {
|
||||||
className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN._charcountercounter, type && BDFDB.disCN[`_charcounter${typeMap[type] || type}counter`]),
|
className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN._charcountercounter, type && BDFDB.disCN[`_charcounter${typeMap[type] || type}counter`]),
|
||||||
refClass: refClass,
|
refClass: refClass,
|
||||||
parsing: parsing,
|
parsing: parsing,
|
||||||
max: maxLengths[type] || (BDFDB.LibraryModules.NitroUtils.canUseIncreasedMessageLength(BDFDB.UserUtils.me) ? BDFDB.DiscordConstants.MAX_MESSAGE_LENGTH_PREMIUM : BDFDB.DiscordConstants.MAX_MESSAGE_LENGTH),
|
max: maxLengths[type] || (BDFDB.LibraryModules.NitroUtils.canUseIncreasedMessageLength(BDFDB.UserUtils.me) && BDFDB.DiscordUtils.getExperiment("premiumContentLengthAvailable") !== false ? BDFDB.DiscordConstants.MAX_MESSAGE_LENGTH_PREMIUM : BDFDB.DiscordConstants.MAX_MESSAGE_LENGTH),
|
||||||
onChange: instance => {
|
onChange: instance => {
|
||||||
let node = BDFDB.ReactUtils.findDOMNode(instance);
|
let node = BDFDB.ReactUtils.findDOMNode(instance);
|
||||||
let form = node && BDFDB.DOMUtils.getParent(BDFDB.dotCN.chatform, node);
|
let form = node && BDFDB.DOMUtils.getParent(BDFDB.dotCN.chatform, node);
|
||||||
|
@ -193,4 +193,4 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
})(window.BDFDB_Global.PluginUtils.buildPlugin(config));
|
})(window.BDFDB_Global.PluginUtils.buildPlugin(config));
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in New Issue