From bb05781696616c45a73a12b3e0284623d41352e9 Mon Sep 17 00:00:00 2001 From: Sean Coker Date: Thu, 14 Jan 2016 12:18:27 -0500 Subject: [PATCH] Use protocol relative urls to fix content warnings Fixes #156 --- js/jquery.prettyPhoto.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.prettyPhoto.js b/js/jquery.prettyPhoto.js index 9ecf9d1..0b9f31b 100644 --- a/js/jquery.prettyPhoto.js +++ b/js/jquery.prettyPhoto.js @@ -279,7 +279,7 @@ movie_id = movie_id.substr(0,movie_id.indexOf('&')); // Strip anything after the & } - movie = 'http://www.youtube.com/embed/'+movie_id; + movie = '//www.youtube.com/embed/'+movie_id; (getParam('rel',pp_images[set_position])) ? movie+="?rel="+getParam('rel',pp_images[set_position]) : movie+="?rel=1"; if(settings.autoplay) movie += "&autoplay=1"; @@ -294,7 +294,7 @@ var regExp = /http(s?):\/\/(www\.)?vimeo.com\/(\d+)/; var match = movie_id.match(regExp); - movie = 'http://player.vimeo.com/video/'+ match[3] +'?title=0&byline=0&portrait=0'; + movie = '//player.vimeo.com/video/'+ match[3] +'?title=0&byline=0&portrait=0'; if(settings.autoplay) movie += "&autoplay=1;"; vimeo_width = pp_dimensions['width'] + '/embed/?moog_width='+ pp_dimensions['width'];