This commit is contained in:
Valeria Fadeeva 2024-01-29 01:42:30 +05:00
parent db736c7a84
commit a6969f5058
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ async function fetchData(log, tpl) {
for (let i = 0; i < spl_arr.length; i++) {
if (spl_arr[i].indexOf(youtube_link_start) === 0) {
let id = spl_arr[i].replace(youtube_link_start, '');
let text_frame = `<iframe class="youtube-video" 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 class="youtube-video" src="https://www.youtube.com/embed/${id}?rel=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>`;
youtube_frame_arr.push(text_frame);
}
}