From 9f1b8a3b1efb1f8ac38f7b44651e5a0b3d41adfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 15 Dec 2021 13:48:59 -0500 Subject: [PATCH] refactor: use hasOwnProperty --- public/src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/utils.js b/public/src/utils.js index fb0eed6c5f..86f799b63f 100644 --- a/public/src/utils.js +++ b/public/src/utils.js @@ -428,7 +428,7 @@ }, extensionToMimeType: function (extension) { - return utils.extensionMimeTypeMap[extension] || '*'; + return utils.extensionMimeTypeMap.hasOwnProperty('extension') ? utils.extensionMimeTypeMap[extension] : '*'; }, isPromise: function (object) {