Skip to content
Snippets Groups Projects
Commit 3954983f authored by Nayeem Rahman's avatar Nayeem Rahman
Browse files

Make the initial room selectable using search params

parent 749a5e62
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,8 @@ import * as humanhash from "humanhash"
import jdenticon from "jdenticon"
const DEFAULT_ROOM = "imperial"
const initialRoom =
new URLSearchParams(location.search).get("room") || DEFAULT_ROOM
const MIN_PRESSURE_FACTOR = 0.1
const MAX_PRESSURE_FACTOR = 1.5
......@@ -533,4 +535,4 @@ window.addEventListener("unload", () => {
}
})
tryRoomConnect(DEFAULT_ROOM)
tryRoomConnect(initialRoom)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment