summaryrefslogtreecommitdiffstats
path: root/js/controller/ShareController.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controller/ShareController.js')
-rw-r--r--js/controller/ShareController.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/controller/ShareController.js b/js/controller/ShareController.js
index 3289edf6a..8df57c5d0 100644
--- a/js/controller/ShareController.js
+++ b/js/controller/ShareController.js
@@ -168,6 +168,11 @@ app.controller('ShareController', function (ShareResource, Loading) {
return app in OC.appswebroots;
};
+ this.isAnySocialAppEnabled = function() {
+ let media = ['facebook', 'twitter', 'email'];
+ return media.some(m => this.isSocialAppEnabled(m));
+ };
+
this.getFacebookUrl = function(url){
return 'https://www.facebook.com/sharer/sharer.php?u='+url;
};