| 
						
						
							
								
							
						
						
					 | 
					@ -64,7 +64,15 @@ tag app | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								catch e | 
					 | 
					 | 
								catch e | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									err "adding link", e | 
					 | 
					 | 
									err "adding link", e | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
						def load_config | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
							try | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
								config = JSON.parse(global.localStorage.fuzzyhome_config) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
								validate_config! | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
							catch | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
								reset_config! | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						def validate_config | 
					 | 
					 | 
						def validate_config | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
							p config | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							throw _ if config.default_bang.id is null | 
					 | 
					 | 
							throw _ if config.default_bang.id is null | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							throw _ if config.default_bang.url is null | 
					 | 
					 | 
							throw _ if config.default_bang.url is null | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							throw _ if config.default_bang.icon is null | 
					 | 
					 | 
							throw _ if config.default_bang.icon is null | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -80,13 +88,6 @@ tag app | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						def save_config | 
					 | 
					 | 
						def save_config | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							global.localStorage.fuzzyhome_config = JSON.stringify(config) | 
					 | 
					 | 
							global.localStorage.fuzzyhome_config = JSON.stringify(config) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						def load_config | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							try | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								config = JSON.parse(global.localStorage.fuzzyhome_config) | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								validate_config! | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							catch | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								reset_config! | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						def err s, e | 
					 | 
					 | 
						def err s, e | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							p e | 
					 | 
					 | 
							p e | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							window.alert("Error {s}:\n\n{e}") | 
					 | 
					 | 
							window.alert("Error {s}:\n\n{e}") | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |