Replace deprecated String#substr with String#slice (#8314)
This commit is contained in:
@@ -42,7 +42,7 @@ export class RestSession {
|
||||
}
|
||||
|
||||
userName(): string {
|
||||
return this.credentials.userId.split(":")[0].substr(1);
|
||||
return this.credentials.userId.split(":")[0].slice(1);
|
||||
}
|
||||
|
||||
displayName(): string {
|
||||
|
||||
Reference in New Issue
Block a user