mirror of
				https://github.com/bra1n/townsquare.git
				synced 2025-10-21 16:55:12 +00:00 
			
		
		
		
	simplified the regex on joining a session to only look for anything starting with http(s):// and parseing out the code.
This commit is contained in:
		
							parent
							
								
									f60069caa9
								
							
						
					
					
						commit
						aee12a23be
					
				
					 1 changed files with 1 additions and 5 deletions
				
			
		|  | @ -276,11 +276,7 @@ export default { | |||
|       let sessionId = prompt( | ||||
|         "Enter the channel number / name of the session you want to join" | ||||
|       ); | ||||
|       if ( | ||||
|         sessionId.match( | ||||
|           /^https?:\/\/([^.]+\.github\.io|localhost|clocktower\.online|eddbra1nprivatetownsquare\.xyz)/i | ||||
|         ) | ||||
|       ) { | ||||
|       if (sessionId.match(/^https?:\/\//i)) { | ||||
|         sessionId = sessionId.split("#")[1]; | ||||
|       } | ||||
|       if (sessionId) { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue