Make some attempt to restore some editor/stats/... state using localStorage.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3855 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
		
							
								
								
									
										10
									
								
								core/app.js
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								core/app.js
									
									
									
									
									
								
							| @@ -129,10 +129,12 @@ function socket(request, response, client) { | ||||
| 					setTimeout(ping, process.timeout); | ||||
| 				} | ||||
| 			} else if (message.action == 'enableStats') { | ||||
| 				process.stats = message.enabled; | ||||
| 				if (!gStatsTimer) { | ||||
| 					sendStats(); | ||||
| 					gStatsTimer = true; | ||||
| 				if (process) { | ||||
| 					process.stats = message.enabled; | ||||
| 					if (!gStatsTimer) { | ||||
| 						sendStats(); | ||||
| 						gStatsTimer = true; | ||||
| 					} | ||||
| 				} | ||||
| 			} else { | ||||
| 				if (process && process.eventHandlers['message']) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user