#1089: Contextual menu open
on anonymous drive
- Related to https://github.com/cryptpad/cryptpad/issues/1089#issuecomment-2044954222
This commit is contained in:
parent
c971cf1527
commit
83b52a221f
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue