summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-05-19 15:39:14 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-06-14 10:13:24 +0200
commit30f5b2bd7cdb9dde211dd0d897f798190c8d3947 (patch)
treec07c7fc6fac0c13560546662f01f03f494f46829 /apps/files_sharing/js
parent21ced89beb3cdb6614597c29d0c6de304325185c (diff)
downloadnextcloud-server-30f5b2bd7cdb9dde211dd0d897f798190c8d3947.tar.gz
nextcloud-server-30f5b2bd7cdb9dde211dd0d897f798190c8d3947.zip
Improve detection of whether we're in the files app
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r--apps/files_sharing/js/external.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/external.js b/apps/files_sharing/js/external.js
index 1e46b35c53b..5e133db2f57 100644
--- a/apps/files_sharing/js/external.js
+++ b/apps/files_sharing/js/external.js
@@ -37,7 +37,7 @@ $(document).ready(function () {
}
};
- if (window.FileList && window.FileList.appName === 'Files') {// only run in the files app
+ if (OCA.Files) {// only run in the files app
var hash = location.hash;
location.hash = '';
var remote = getParameterByName(hash, 'remote');