Fix deprecated usage of substr
This commit is contained in:
parent
a369444b62
commit
3ed35f9477
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ export function RoomRedirect() {
|
|||
let roomId = pathname;
|
||||
|
||||
if (pathname.startsWith("/")) {
|
||||
roomId = roomId.substr(1, roomId.length);
|
||||
roomId = roomId.substring(1, roomId.length);
|
||||
}
|
||||
|
||||
if (!roomId.startsWith("#") && !roomId.startsWith("!")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue