From 13bf4d2e8f36f36e7c559cf2edff1e723d3995cd Mon Sep 17 00:00:00 2001 From: Nitesh Kumar Date: Fri, 13 Mar 2020 16:45:43 +0530 Subject: [PATCH] addressed review comments --- src/file/FileUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/file/FileUtils.js b/src/file/FileUtils.js index 819168d12b4..284c839b44e 100644 --- a/src/file/FileUtils.js +++ b/src/file/FileUtils.js @@ -546,9 +546,9 @@ define(function (require, exports, module) { */ function addExtensionToExternalAppList(ext) { - if(typeof ext !== 'string') { + if(Array.isArray(ext)) { extListToBeOpenedInExtApp = ext; - } else { + } else if (typeof ext === 'string'){ extListToBeOpenedInExtApp.push(ext); } }