From e2c4546ca87b14b7018f54fc6d53652c219632b6 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Tue, 29 Mar 2016 02:40:51 +0300 Subject: [PATCH] Don't replace http in https with https --- Plugins/videoSupport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/videoSupport.js b/Plugins/videoSupport.js index 4274ac7..f7261bd 100644 --- a/Plugins/videoSupport.js +++ b/Plugins/videoSupport.js @@ -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";