mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-10-31 21:22:54 +00:00 
			
		
		
		
	Remove TODO I thought about
This commit is contained in:
		| @@ -41,14 +41,9 @@ export class WebSocketService { | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   public send(key: string, data?: any, trigger?: any): void { |   public send(key: string, data?: any, trigger?: any): void { | ||||||
|     // TODO: do this nicer? |  | ||||||
|     const message = {'key': key}; |     const message = {'key': key}; | ||||||
|     if (data) { |     if (data) { message['data'] = data; } | ||||||
|       message['data'] = data; |     if (trigger) { message['trigger'] = trigger; } | ||||||
|     } |  | ||||||
|     if (trigger) { |  | ||||||
|       message['trigger'] = trigger; |  | ||||||
|     } |  | ||||||
|     this.uplink.next(message); |     this.uplink.next(message); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user