[Glitch] Replace deprecated String.prototype.substr()

Port 0ec695e036 to glitch-soc

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
CommanderRoot
2022-04-04 18:19:45 +02:00
committed by Claire
parent c02644ef10
commit 9b95077885
3 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ const trim = (text, len) => {
return text;
}
return text.substring(0, cut) + (text.length > len ? '…' : '');
return text.slice(0, cut) + (text.length > len ? '…' : '');
};
const domParser = new DOMParser();