mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
#1089: Contextual menu open on anonymous drive
- Related to https://github.com/cryptpad/cryptpad/issues/1089#issuecomment-2044954222
This commit is contained in:
parent
d7dd9d1b45
commit
463fc45b2a
@ -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 New Issue
Block a user