mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	only log preview error in dev mode
This commit is contained in:
		
							parent
							
								
									2dfadc082d
								
							
						
					
					
						commit
						5fd3e271ac
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -157,7 +157,9 @@ watch(activityPub, async (uri) => {
 | 
				
			||||||
			if (response.type !== 'Note') return;
 | 
								if (response.type !== 'Note') return;
 | 
				
			||||||
			theNote.value = response['object'];
 | 
								theNote.value = response['object'];
 | 
				
			||||||
		} catch (err) {
 | 
							} catch (err) {
 | 
				
			||||||
			console.error(err);
 | 
								if (_DEV_) {
 | 
				
			||||||
 | 
									console.error(`failed to extract note for preview of ${uri}`, err);
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue