fixed not returnin null if parsed from url
This commit is contained in:
parent
64847cd465
commit
54d392be82
2 changed files with 4 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue