fixed not returnin null if parsed from url

This commit is contained in:
jonny 2021-06-23 15:06:38 +02:00
parent 64847cd465
commit 54d392be82
2 changed files with 4 additions and 1 deletions

View file

@ -46,6 +46,9 @@ export class Room {
roomId = roomId.substring(1); //remove the leading slash
hash = absoluteExitSceneUrl.hash;
hash = hash.substring(1); //remove the leading diese
if (!hash.length) {
hash = null
}
} else { //absolute room Id
const parts = identifier.split('#');
roomId = parts[0];