diff --git a/js/filetypes.js b/js/filetypes.js index 55b5ed8..f9fc8b8 100644 --- a/js/filetypes.js +++ b/js/filetypes.js @@ -1,6 +1,6 @@ $(document).ready(function() { - if (OCA.Files && OCA.Files.fileActions) { + if (OCA.Files && OCA.Files.fileActions && !$('#sharingToken').val()) { function openFile(file, data){ var url = OC.generateUrl('apps/gpxedit/?file={filepath}',{'filepath': data.dir+'/'+file});