#1089: Contextual menu open on anonymous drive

- Related to https://github.com/cryptpad/cryptpad/issues/1089#issuecomment-2044954222
This commit is contained in:
Fabrice Mouhartem 2024-04-09 15:00:12 +02:00
parent d7dd9d1b45
commit 463fc45b2a
No known key found for this signature in database
GPG Key ID: 90579C24FD123C93

View File

@ -1201,7 +1201,8 @@ define([
// falsy (open in preview if default is not using the app)
var defaultInApp = ['application/pdf'];
var openFile = function (el, isRo, app) {
var data = manager.getFileData(el);
// On anonymous drive, `el` already contains file data
var data = el.channel ? el : manager.getFileData(el);
if (data.static) {
if (data.href) {