#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 committed by Wolfgang Ginolas
parent c971cf1527
commit 83b52a221f

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) {