Merge pull request #917 from ttheuer/plugins-fix

Replaced 3  no-protocol links with https-links.
This commit is contained in:
Lorenz Hübschle-Schneider 2017-03-16 10:33:06 +01:00 committed by GitHub
commit ddc2b14584

View file

@ -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('<iframe></iframe>')
.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') + '<script async src="//platform.vine.co/static/scripts/embed.js" charset="utf-8"></script>';
return element.prop('outerHTML') + '<script async src="https://platform.vine.co/static/scripts/embed.js" charset="utf-8"></script>';
}
});