summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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');