remove instance, change room url, fix invalid lastRoomUrls
This commit is contained in:
@@ -18,7 +18,7 @@ export class Room {
|
||||
private _iframeAuthentication?: string;
|
||||
private _mapUrl: string | undefined;
|
||||
private _textures: CharacterTexture[] | undefined;
|
||||
private instance: string | undefined;
|
||||
// private instance: string | undefined;
|
||||
private readonly _search: URLSearchParams;
|
||||
|
||||
private constructor(private roomUrl: URL) {
|
||||
@@ -73,12 +73,13 @@ export class Room {
|
||||
const baseUrl = new URL(currentRoomUrl);
|
||||
|
||||
const currentRoom = new Room(baseUrl);
|
||||
let instance: string = "global";
|
||||
if (currentRoom.isPublic) {
|
||||
instance = currentRoom.instance as string;
|
||||
}
|
||||
// let instance: string = "global";
|
||||
// if (currentRoom.isPublic) {
|
||||
// instance = currentRoom.instance as string;
|
||||
//}
|
||||
|
||||
baseUrl.pathname = "/_/" + instance + "/" + absoluteExitSceneUrl.host + absoluteExitSceneUrl.pathname;
|
||||
// baseUrl.pathname = "/_/" + instance + "/" + absoluteExitSceneUrl.host + absoluteExitSceneUrl.pathname;
|
||||
baseUrl.pathname = "/_/" + absoluteExitSceneUrl.host + absoluteExitSceneUrl.pathname;
|
||||
if (absoluteExitSceneUrl.hash) {
|
||||
baseUrl.hash = absoluteExitSceneUrl.hash;
|
||||
}
|
||||
@@ -114,6 +115,8 @@ export class Room {
|
||||
* - In a private URL: [organizationId/worldId]
|
||||
*/
|
||||
public getInstance(): string {
|
||||
return "";
|
||||
/*
|
||||
if (this.instance !== undefined) {
|
||||
return this.instance;
|
||||
}
|
||||
@@ -129,6 +132,7 @@ export class Room {
|
||||
this.instance = match[1] + "/" + match[2];
|
||||
return this.instance;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user