Don't replace http in https with https
This commit is contained in:
parent
066a8789e9
commit
e2c4546ca8
|
@ -7,7 +7,7 @@ videoSupport.prototype.convert = function () {
|
|||
var t = $(this);
|
||||
var href = t.attr("href");
|
||||
if(href == undefined) return true;
|
||||
href = href.replace("http", "https");
|
||||
href = href.replace("http:", "https:");
|
||||
if(!href.endsWith(".mp4") && !href.endsWith(".webm") && !href.endsWith(".ogg")) return true;
|
||||
var type = "webm";
|
||||
if(href.endsWith(".mp4")) type = "mp4";
|
||||
|
|
Loading…
Reference in New Issue