From 4a0ed97934325bad8ec99d8d4a39a8c7c6166f99 Mon Sep 17 00:00:00 2001 From: kurros Date: Fri, 5 Aug 2016 18:42:41 -0400 Subject: [PATCH] allow browser to use https for pastebin embed --- js/plugins.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/plugins.js b/js/plugins.js index d6b4ff9..952acd4 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -457,11 +457,11 @@ plugins.factory('userPlugins', function() { }); var pastebinPlugin = new UrlPlugin('Pastebin', function(url) { - var regexp = /^http:\/\/pastebin.com\/([^.?]+)/i; + var regexp = /^https?:\/\/pastebin.com\/([^.?]+)/i; var match = url.match(regexp); if (match) { var id = match[1], - embedurl = "http://pastebin.com/embed_iframe/" + id, + embedurl = "//pastebin.com/embed_iframe/" + id, element = angular.element('') .attr('src', embedurl) .attr('width', '100%')