mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Added more info on faulty input
- Sent in the results on REST - Sent in the update_required msg on socket.io connection
This commit is contained in:
		| @@ -1,6 +1,12 @@ | ||||
| function frontpage_lists(msg, socket) { | ||||
|     if(msg == undefined || !msg.hasOwnProperty('version') || msg.version != VERSION || msg.version == undefined) { | ||||
|         socket.emit("update_required"); | ||||
|         var result = { | ||||
|             version: { | ||||
|                 expected: VERSION, | ||||
|                 got: msg.hasOwnProperty("version") ? msg.version : undefined, | ||||
|             } | ||||
|         }; | ||||
|         socket.emit('update_required', result); | ||||
|         return; | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user