Update url-preview.vue (#3602)
This commit is contained in:
		
							parent
							
								
									7645c212a3
								
							
						
					
					
						commit
						f3ee63fcbe
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -170,6 +170,9 @@ export default Vue.extend({
 | 
			
		|||
			return;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (url.hostname === 'music.youtube.com')
 | 
			
		||||
			url.hostname = 'youtube.com';
 | 
			
		||||
 | 
			
		||||
		fetch(`/url?url=${encodeURIComponent(this.url)}`).then(res => {
 | 
			
		||||
			res.json().then(info => {
 | 
			
		||||
				if (info.url == null) return;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue