From cde78c983eaa5e1847098fccc324ff9d2348785a Mon Sep 17 00:00:00 2001 From: David Ball Date: Mon, 24 Jun 2024 04:30:06 -0400 Subject: [PATCH] fix: View/Download viewer will be selected as default when no other viewer is default. --- app/helpers/functions.mts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/functions.mts b/app/helpers/functions.mts index 32601299..b7b3943f 100644 --- a/app/helpers/functions.mts +++ b/app/helpers/functions.mts @@ -198,7 +198,7 @@ const defaultViewerForFile = (file: string) => { if (isMsOfficeViewerSupported(file)) { return "ms-office-viewer"; } - else if (path.extname(file).search(/^((?:.pdf))$/ig) != -1) { + else { return "built-in"; } }