summaryrefslogtreecommitdiffstats
path: root/js/build/app.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-12-19 13:31:13 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-12-19 13:31:21 +0100
commit051e68ec58669bbe79dc49d82e128c3b400778fe (patch)
treec0c4acde38d4c718b4a9993eb8a467b8ecd4e03f /js/build/app.js
parentb4047d53b07d0d12ae0cbf3349a73cdf814cacee (diff)
if no protocol is being added, e.g. cnn.com, append https:// instead of http:// in front of the address
Diffstat (limited to 'js/build/app.js')
-rw-r--r--js/build/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/build/app.js b/js/build/app.js
index a02ed64ef..e85814e71 100644
--- a/js/build/app.js
+++ b/js/build/app.js
@@ -1057,7 +1057,7 @@ app.factory('FeedResource', ["Resource", "$http", "BASE_URL", "$q", function (Re
FeedResource.prototype.create = function (url, folderId, title) {
url = url.trim();
if (!url.startsWith('http')) {
- url = 'http://' + url;
+ url = 'https://' + url;
}
if (title !== undefined) {
@@ -2333,7 +2333,7 @@ window.News = window.News || {};
return articleActionPluginsById[id];
};
-})(window, document, jQuery, News);
+})(window, document, jQuery, window.News);
app.run(["$document", "$rootScope", function ($document, $rootScope) {