Update
This commit is contained in:
		
							parent
							
								
									f831d4fa94
								
							
						
					
					
						commit
						e9740e8914
					
				|  | @ -34,7 +34,7 @@ async function fetchData(log, tpl) { | ||||||
|                 let spl_arr = text.split('"'); |                 let spl_arr = text.split('"'); | ||||||
|                 let youtube_link_start = 'https://www.youtube.com/watch?v='; |                 let youtube_link_start = 'https://www.youtube.com/watch?v='; | ||||||
| 
 | 
 | ||||||
|                 for (i = 0; i < spl_arr.length; i++) { |                 for (let i = 0; i < spl_arr.length; i++) { | ||||||
|                     if (spl_arr[i].indexOf(youtube_link_start) === 0) { |                     if (spl_arr[i].indexOf(youtube_link_start) === 0) { | ||||||
|                         let id = spl_arr[i].replace(youtube_link_start, ''); |                         let id = spl_arr[i].replace(youtube_link_start, ''); | ||||||
|                         let text_frame = `<iframe width="560" height="315" src="https://www.youtube.com/embed/${id}" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>`; |                         let text_frame = `<iframe width="560" height="315" src="https://www.youtube.com/embed/${id}" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>`; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue