1
0
Fork 0
mirror of https://github.com/Yetangitu/owncloud-apps.git synced 2025-10-02 14:49:17 +02:00

files_reader: experimental PDF support, Work In Progress

This commit is contained in:
frankdelange 2017-03-19 17:56:52 +01:00
parent 9865f94e70
commit ed0d8ae717
27 changed files with 3649 additions and 2 deletions

View file

@ -119,10 +119,19 @@
return actionHandler(fileName, 'application/x-cbr', context);
}
});
fileActions.registerAction({
name: 'view-pdf',
displayName: 'View',
mime: 'application/pdf',
permissions: OC.PERMISSION_READ,
actionHandler: function(fileName, context) {
return actionHandler(fileName, 'application/pdf', context);
}
});
fileActions.setDefault('application/epub+zip', 'view-epub');
fileActions.setDefault('application/x-cbr', 'view-cbr');
fileActions.setDefault('application/pdf', 'view-pdf');
}
};