From 30f5b2bd7cdb9dde211dd0d897f798190c8d3947 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 19 May 2014 15:39:14 +0200 Subject: [PATCH] Improve detection of whether we're in the files app --- apps/files_sharing/js/external.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); -- 2.39.5