Browse Source

VideoID is equal to last youtubeMatches

master
Madh93 10 years ago
parent
commit
bc5a03c99a
  1. 2
      app/js/services.js

2
app/js/services.js

@ -3321,7 +3321,7 @@ angular.module('myApp.services', ['myApp.i18n'])
// console.log(4, text, html); // console.log(4, text, html);
if (!options.noLinks) { if (!options.noLinks) {
var youtubeMatches = text.match(youtubeRegex), var youtubeMatches = text.match(youtubeRegex),
videoID = youtubeMatches && youtubeMatches[1]; videoID = youtubeMatches && youtubeMatches[youtubeMatches.length-1];
if (videoID) { if (videoID) {
var tag = Config.Modes.chrome_packed ? 'webview' : 'iframe'; var tag = Config.Modes.chrome_packed ? 'webview' : 'iframe';

Loading…
Cancel
Save