Fix deprecated usage of substr

This commit is contained in:
Robert Long 2022-02-14 12:35:39 -08:00
parent a369444b62
commit 3ed35f9477

View File

@ -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("!")) {