Do not register file handlers if the new viewer app is installed

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-02-26 17:55:40 +01:00
parent 5c31a0a9eb
commit c524731ca8
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,9 @@
* @param {Array} mediaTypes
*/
register: function (mediaTypes) {
if (OCA.Viewer) {
return;
}
//console.log("enabledPreviewProviders: ", mediaTypes);
if (mediaTypes) {
// Remove SVG if the user is using an insecure browser (IE8-9)