mirror of
				https://github.com/flynx/Course-JavaScript.git
				synced 2025-10-31 03:50:10 +00:00 
			
		
		
		
	...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									e46a555705
								
							
						
					
					
						commit
						3ac881c3aa
					
				| @ -2,6 +2,6 @@ CACHE MANIFEST | |||||||
| # Last Modified: 2017 Apr 13 | # Last Modified: 2017 Apr 13 | ||||||
| 
 | 
 | ||||||
| CACHE: | CACHE: | ||||||
| simplesnake.html |  | ||||||
| simplesnake.css | simplesnake.css | ||||||
| simplesnake.js | simplesnake.js | ||||||
|  | simplesnake.html | ||||||
|  | |||||||
| @ -375,6 +375,15 @@ function setup(snake, timer, size){ | |||||||
| 		//document.addEventListener('touchstart', makeTapHandler(snake))
 | 		//document.addEventListener('touchstart', makeTapHandler(snake))
 | ||||||
| 		document.addEventListener('mousedown', makeTapHandler(snake)) | 		document.addEventListener('mousedown', makeTapHandler(snake)) | ||||||
| 		HANDLER_SET = true | 		HANDLER_SET = true | ||||||
|  | 
 | ||||||
|  | 		if(window.applicationCache){ | ||||||
|  | 			applicationCache.update() | ||||||
|  | 
 | ||||||
|  | 			if(applicationCache.status == applicationCache.UPDATEREADY){ | ||||||
|  | 				console.log('NEW VERSION') | ||||||
|  | 				applicationCache.swapCache() | ||||||
|  | 			} | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	return snake | 	return snake | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user