.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
@@ -170,7 +170,7 @@ class Util {
}
randomToken(): string {
- return Math.random().toString(36).substr(2);
+ return Math.random().toString(36).slice(2);
isSecure(): boolean {