diff --git a/src/components/Menu.vue b/src/components/Menu.vue index 79715a5..5160305 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -255,9 +255,12 @@ export default { }, joinSession() { if (this.session.sessionId) return this.leaveSession(); - const sessionId = prompt( + let sessionId = prompt( "Enter the channel number / name of the session you want to join" ); + if (sessionId.match(/^https?:\/\//i)) { + sessionId = sessionId.split("#").pop(); + } if (sessionId) { this.$store.commit("session/clearVoteHistory"); this.$store.commit("session/setSpectator", true);