From 954d39bb0c162a075a6cc2ad7e2ef8c62a96b679 Mon Sep 17 00:00:00 2001 From: jonny Date: Sun, 9 Jan 2022 13:51:44 +0100 Subject: [PATCH] always set hash --- front/src/Connexion/Room.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/front/src/Connexion/Room.ts b/front/src/Connexion/Room.ts index 74dd06de..0f7f9d18 100644 --- a/front/src/Connexion/Room.ts +++ b/front/src/Connexion/Room.ts @@ -9,7 +9,7 @@ import { isMapDetailsData } from "../Messages/JsonMessages/MapDetailsData"; import { isRoomRedirect } from "../Messages/JsonMessages/RoomRedirect"; 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 { @@ -91,9 +91,9 @@ export class Room { } baseUrl.pathname = "/_/" + instance + "/" + absoluteExitSceneUrl.host + absoluteExitSceneUrl.pathname; - if (absoluteExitSceneUrl.hash) { - baseUrl.hash = absoluteExitSceneUrl.hash; - } + + baseUrl.hash = absoluteExitSceneUrl.hash; + return baseUrl; }