Fix deprecated usage of substr
This commit is contained in:
@@ -11,7 +11,7 @@ export function RoomRedirect() {
|
|||||||
let roomId = pathname;
|
let roomId = pathname;
|
||||||
|
|
||||||
if (pathname.startsWith("/")) {
|
if (pathname.startsWith("/")) {
|
||||||
roomId = roomId.substr(1, roomId.length);
|
roomId = roomId.substring(1, roomId.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!roomId.startsWith("#") && !roomId.startsWith("!")) {
|
if (!roomId.startsWith("#") && !roomId.startsWith("!")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user