From a769a0ed4ea26cac06646510718dc688b9091660 Mon Sep 17 00:00:00 2001 From: Tobias Theuer Date: Wed, 15 Mar 2017 03:32:43 +0100 Subject: [PATCH] Fixed imgur-embeds in Electron app. --- js/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/plugins.js b/js/plugins.js index cc8a115..329f61d 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -282,7 +282,7 @@ plugins.factory('userPlugins', function() { url = url.replace(/.*\//, "http://media.fukung.net/imgs/"); } else if (url.match(/^http:\/\/(i\.)?imgur\.com\//i)) { // remove protocol specification to load over https if used by g-b - url = url.replace(/http:/, ""); + url = url.replace(/http:/, "https:"); } else if (url.match(/^https:\/\/www\.dropbox\.com\/s\/[a-z0-9]+\//i)) { // Dropbox requires a get parameter, dl=1 var dbox_url = document.createElement("a");