]> source.dussan.org Git - nextcloud-server.git/commitdiff
Improve detection of whether we're in the files app
authorRobin Appelman <icewind@owncloud.com>
Mon, 19 May 2014 13:39:14 +0000 (15:39 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Sat, 14 Jun 2014 08:13:24 +0000 (10:13 +0200)
apps/files_sharing/js/external.js

index 1e46b35c53bc21ba52aeaad5b50b4e3d8a7aea35..5e133db2f574b5fdec545c6d10576a3e4498c698 100644 (file)
@@ -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');