mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Fix URL
This commit is contained in:
		@@ -19,7 +19,7 @@ class UserWebSocket {
 | 
			
		||||
			const token = (await api("ws/token", null, true)).token;
 | 
			
		||||
 | 
			
		||||
			// Determine websocket URL
 | 
			
		||||
			const url = ComunicWeb.__config.apiURL.replace("http", "ws") + "ws?key=" + token
 | 
			
		||||
			const url = ComunicWeb.__config.apiURL.replace("http", "ws") + "ws?token=" + token
 | 
			
		||||
 | 
			
		||||
			// Connect to websocket
 | 
			
		||||
			this.ws = new WebSocket(url);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user