From 8f64024f9bc82b8f39c5fb31ecda5e2585b6b1a9 Mon Sep 17 00:00:00 2001 From: Greg Green Date: Mon, 13 Jul 2015 15:11:13 -0400 Subject: [PATCH] Removes mixed content errors by moving to protocol agnostic paths in video.js. Fixes #931 --- src/js/owl.video.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/js/owl.video.js b/src/js/owl.video.js index 6b2e7b9e..e900bbce 100644 --- a/src/js/owl.video.js +++ b/src/js/owl.video.js @@ -189,12 +189,12 @@ } if (video.type === 'youtube') { - path = "http://img.youtube.com/vi/" + video.id + "/hqdefault.jpg"; + path = "//img.youtube.com/vi/" + video.id + "/hqdefault.jpg"; create(path); } else if (video.type === 'vimeo') { $.ajax({ type: 'GET', - url: 'http://vimeo.com/api/v2/video/' + video.id + '.json', + url: '//vimeo.com/api/v2/video/' + video.id + '.json', jsonp: 'callback', dataType: 'jsonp', success: function(data) { @@ -205,7 +205,7 @@ } else if (video.type === 'vzaar') { $.ajax({ type: 'GET', - url: 'http://vzaar.com/api/videos/' + video.id + '.json', + url: '//vzaar.com/api/videos/' + video.id + '.json', jsonp: 'callback', dataType: 'jsonp', success: function(data) { @@ -254,10 +254,10 @@ this._core.reset(item.index()); if (video.type === 'youtube') { - html = ''; } else if (video.type === 'vimeo') { - html = ''; } else if (video.type === 'vzaar') {