Your plugin conflicts with other JS
-
This breaks the rest of my javascript:
var videoid = url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/); jQuery(this).attr('href','https://www.youtube.com/embed/'+videoid[1]);You should check for videoid
var videoid = url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/); if( videoid ) { jQuery(this).attr('href','https://www.youtube.com/embed/'+videoid[1]); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Your plugin conflicts with other JS’ is closed to new replies.