summaryrefslogtreecommitdiffstats
path: root/js/build/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/build/app.js')
-rw-r--r--js/build/app.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/build/app.js b/js/build/app.js
index cef96d193..ae6075da6 100644
--- a/js/build/app.js
+++ b/js/build/app.js
@@ -454,11 +454,15 @@ app.controller('ContentController',
};
}]);
-app.controller('ExploreController', ["sites", "$rootScope", function (sites, $rootScope) {
+app.controller('ExploreController', ["sites", "$rootScope", "FeedResource", function (sites, $rootScope, FeedResource) {
'use strict';
this.sites = sites;
+ this.feedExists = function (url) {
+ return FeedResource.get(url) !== undefined;
+ };
+
this.subscribeTo = function (url) {
$rootScope.$broadcast('addFeed', url);
};