| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -46,8 +46,7 @@ func copy(src, dst string) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							return | 
					 | 
					 | 
					 | 
							return | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						} | 
					 | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						err = ioutil.WriteFile(dst, input, 0644) | 
					 | 
					 | 
					 | 
						if err = ioutil.WriteFile(dst, input, 0644); err != nil { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						if err != nil { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							fmt.Println("Error creating", dst) | 
					 | 
					 | 
					 | 
							fmt.Println("Error creating", dst) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							fmt.Println(err) | 
					 | 
					 | 
					 | 
							fmt.Println(err) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							return | 
					 | 
					 | 
					 | 
							return | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -78,10 +77,11 @@ func resetDirectories(configuration Config) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					func createInitialOfflineState() { | 
					 | 
					 | 
					 | 
					func createInitialOfflineState() { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						// Provide default files
 | 
					 | 
					 | 
					 | 
						// Provide default files
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						showStreamOfflineState(configuration) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						if !fileExists("webroot/thumbnail.png") { | 
					 | 
					 | 
					 | 
						if !fileExists("webroot/thumbnail.png") { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							copy("static/logo.png", "webroot/thumbnail.png") | 
					 | 
					 | 
					 | 
							copy("static/logo-900x720.png", "webroot/thumbnail.png") | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						} | 
					 | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						showStreamOfflineState(configuration) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					func getClientIDFromRequest(req *http.Request) string { | 
					 | 
					 | 
					 | 
					func getClientIDFromRequest(req *http.Request) string { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |