Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
123456789101112131415 |
- import { getBackendSafeRoomName } from '../util/uri';
-
- /**
- * Builds and returns the room name.
- *
- * @returns {string}
- */
- export default function getRoomName(): string | undefined {
- const path = window.location.pathname;
-
- // The last non-directory component of the path (name) is the room.
- const roomName = path.substring(path.lastIndexOf('/') + 1) || undefined;
-
- return getBackendSafeRoomName(roomName);
- }
|