🇪🇸Spain @lelikone

Account created on 7 October 2024, about 2 months ago
#

Recent comments

🇪🇸Spain lelikone

const a = e.match(/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?v=)?(.+)/);
if (a && a[1]) {
return o(`https://www.youtube.com/embed/${a[1]}`, l())
}
return e

This part of the code works like this, if you inserted a link from youtube, it will return everything ok, but if there is no mention of youtube in the link, it will return the original link.

🇪🇸Spain lelikone


Here I attach a screenshot, where I just entered the address of any site and the frame was created with any site, no error or information is not issued. version 1.0.2 is installed.

🇪🇸Spain lelikone

Hello @abdei

Thanks for the update, but I keep getting the same problem. Also discovered one strange behavior. If I insert another site in the link string address, then an iframe is created in which the site is inserted, I need to add a check that it is youtube site and not another site.

Regards, Lelikone

🇪🇸Spain lelikone

Maybe you can tell me in what direction to look for a solution, we would fix it ourselves, but it's strange that it doesn't work only in the comments

Production build 0.71.5 2024