From 8039f1d11797d3c0f924e693ebfcd3980f42be44 Mon Sep 17 00:00:00 2001 From: Sumedha Pramod Date: Tue, 27 Mar 2018 10:46:47 -0700 Subject: [PATCH] New: Enable Preview support for iWork file types (#741) - Enables previews for '.key', '.pages', & '.numbers' file extensions --- src/lib/extensions.js | 3 +++ src/lib/viewers/doc/DocLoader.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/extensions.js b/src/lib/extensions.js index fb3c536d1..25606aa6c 100644 --- a/src/lib/extensions.js +++ b/src/lib/extensions.js @@ -57,6 +57,9 @@ export const DOCUMENT_EXTENSIONS = CODE_EXTENSIONS.concat(NON_CODE_EXTENSIONS) 'gsheet', 'gslide', 'gslides', + 'pages', + 'numbers', + 'key', 'msg', 'odp', 'ods', diff --git a/src/lib/viewers/doc/DocLoader.js b/src/lib/viewers/doc/DocLoader.js index a132d10ba..abf8a4a21 100644 --- a/src/lib/viewers/doc/DocLoader.js +++ b/src/lib/viewers/doc/DocLoader.js @@ -15,7 +15,7 @@ const VIEWERS = [ NAME: 'Presentation', CONSTRUCTOR: PresentationViewer, REP: 'pdf', - EXT: ['gslide', 'gslides', 'odp', 'ppt', 'pptx'] + EXT: ['gslide', 'gslides', 'odp', 'ppt', 'pptx', 'key'] }, { NAME: 'Document',