always set hash

This commit is contained in:
jonny 2022-01-09 13:51:44 +01:00
parent adac0df05d
commit 954d39bb0c

View File

@ -9,7 +9,7 @@ import { isMapDetailsData } from "../Messages/JsonMessages/MapDetailsData";
import { isRoomRedirect } from "../Messages/JsonMessages/RoomRedirect"; import { isRoomRedirect } from "../Messages/JsonMessages/RoomRedirect";
export class MapDetail { export class MapDetail {
constructor(public readonly mapUrl: string, public readonly textures: CharacterTexture[] | undefined) {} constructor(public readonly mapUrl: string, public readonly textures: CharacterTexture[] | undefined) { }
} }
export interface RoomRedirect { export interface RoomRedirect {
@ -91,9 +91,9 @@ export class Room {
} }
baseUrl.pathname = "/_/" + instance + "/" + absoluteExitSceneUrl.host + absoluteExitSceneUrl.pathname; baseUrl.pathname = "/_/" + instance + "/" + absoluteExitSceneUrl.host + absoluteExitSceneUrl.pathname;
if (absoluteExitSceneUrl.hash) {
baseUrl.hash = absoluteExitSceneUrl.hash; baseUrl.hash = absoluteExitSceneUrl.hash;
}
return baseUrl; return baseUrl;
} }