From 9998f22c1e3663e65dce4ffe14dcfe516d3855b1 Mon Sep 17 00:00:00 2001 From: Tobias Theuer Date: Wed, 15 Mar 2017 23:36:46 +0100 Subject: [PATCH] Replaced 3 no-protocol links with https-links. Now they work in the Electron app! --- js/plugins.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/plugins.js b/js/plugins.js index bf66597..a22c73d 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -464,7 +464,7 @@ plugins.factory('userPlugins', function() { var match = url.match(regexp); if (match) { var id = match[1], - embedurl = "//pastebin.com/embed_iframe/" + id, + embedurl = "https://pastebin.com/embed_iframe/" + id, element = angular.element('') .attr('src', embedurl) .attr('width', '100%') @@ -514,7 +514,7 @@ plugins.factory('userPlugins', function() { // The script tag needs to be generated manually or the browser won't load it var scriptElem = document.createElement('script'); // Hardcoding the URL here, I don't suppose it's going to change anytime soon - scriptElem.src = "//platform.twitter.com/widgets.js"; + scriptElem.src = "https://platform.twitter.com/widgets.js"; element.appendChild(scriptElem); }); }; @@ -535,7 +535,7 @@ plugins.factory('userPlugins', function() { .attr('width', '600') .attr('height', '600') .attr('frameborder', '0'); - return element.prop('outerHTML') + ''; + return element.prop('outerHTML') + ''; } });