From f8341b05895306f910ff8d90a4e54c1cd4ce353f Mon Sep 17 00:00:00 2001 From: Greg Fodor <gfodor@gmail.com> Date: Mon, 17 Sep 2018 22:06:40 +0000 Subject: [PATCH] Inline function --- src/hub.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/hub.js b/src/hub.js index d9f4ef870..c29db1773 100644 --- a/src/hub.js +++ b/src/hub.js @@ -543,10 +543,6 @@ const onReady = async () => { } }; - const setRoom = (hubId, hubName) => { - remountUI({ hubId, hubName }); - }; - // Connect to reticulum over phoenix channels to get hub info. const hubId = qs.get("hub_id") || document.location.pathname.substring(1).split("/")[0]; console.log(`Hub ID: ${hubId}`); @@ -576,7 +572,7 @@ const onReady = async () => { initialEnvironmentEl.setAttribute("gltf-bundle", `src: ${sceneUrl}`); } - setRoom(hub.hub_id, hub.name); + remountUI({ hubId: hub.hub_id, hubName: hub.name }); hubChannel.setPhoenixChannel(channel); if (isBotMode) enterSceneWhenReady(hub.hub_id); -- GitLab