mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-23 18:21:55 +01:00
fix: compile error
This commit is contained in:
parent
17f98a87c7
commit
5f164202a2
@ -23,7 +23,7 @@ const getProgressString = (percent) => {
|
||||
* @returns {String}
|
||||
*/
|
||||
// TODO do this with something like wcwidth
|
||||
function getMaxWidthString = (string) => {
|
||||
function getMaxWidthString (string) {
|
||||
const NUMBER_OF_CHARS = 12;
|
||||
if (string.length > NUMBER_OF_CHARS) {
|
||||
return string.slice(0, NUMBER_OF_CHARS - 3) + "...";
|
||||
|
Loading…
Reference in New Issue
Block a user