From c524731ca8e45ef9681f35d769c6d9379223fb03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 26 Feb 2019 17:55:40 +0100 Subject: [PATCH] Do not register file handlers if the new viewer app is installed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- js/galleryfileaction.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/galleryfileaction.js b/js/galleryfileaction.js index d0c9a1b48..addd335ef 100644 --- a/js/galleryfileaction.js +++ b/js/galleryfileaction.js @@ -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)